Last 12 weeks · 0 commits
4 of 6 standards met
There have been multiple requests to escape additional characters, so this makes it clearer that minimal escaping is done, per https://github.com/sindresorhus/escape-string-regexp/issues/30#issuecomment-698328200. It also gives a solution for more involved context-aware escaping that handles numerous edge cases, for situations when developers need to insert an escaped string at an arbitrary position in a regex. Fixes #30
Repository: sindresorhus/escape-string-regexp. Description: Escape RegExp special characters Stars: 598, Forks: 59. Primary language: JavaScript. Languages: JavaScript (86.9%), TypeScript (13.1%). License: MIT. Latest release: v5.0.0 (5y ago). Open PRs: 0, open issues: 0. Last activity: 1y ago. Community health: 85%. Top contributors: sindresorhus, charmander, jbnicolai, coreyfarrell, BendingBender, Richienb, slevithan.