Last 12 weeks · 0 commits
4 of 6 standards met
Repository: sindresorhus/escape-string-regexp. Description: Escape RegExp special characters Stars: 598, Forks: 57. Primary language: JavaScript. Languages: JavaScript (86.9%), TypeScript (13.1%). License: MIT. Latest release: v5.0.0 (4y ago). Open PRs: 0, open issues: 0. Last activity: 10mo ago. Community health: 85%. Top contributors: sindresorhus, charmander, jbnicolai, coreyfarrell, BendingBender, Richienb, slevithan.
MIT license needs both of year and copyright holder. Please complete MIT license. We want to use this without legal risk.
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