Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incomplete regex escape function.
Use the regex from the TC39 [regex escaping proposal](https://github.com/tc39/proposal-regex-escaping) instead of our own, which didn't handle backslashes properly. The code taken from the proposal is public domain (CC0 1.0 declaration), so the attribution link is simply for maintainability rather than legal reasons. Fixes https://github.com/alphagov/content-tagger/security/code-scanning/1.
- Loading branch information