Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit 3c3590f

Browse files
authored
Merge pull request #47 from oliverfoster/oliverfoster-patch-1
Update README.md
2 parents 1e2e950 + 5c1b733 commit 3c3590f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ The one obscure case where this could suggest a cause for escaping, avoiding a r
8787
* **Why not `RegExp.tag` or another tagged template based proposal?**
8888
8989
During the last time this proposal was presented - an edge case was brought up where tagged templates were suggested as an alternative. We believe a simple function is a much better and simpler alternative to tagged templates here:
90-
- Users have consistently been asking for `RegExp.escape` over the past 5 years - both in this repo and elsewhere. Packages providing this functionality are [very popular](https://www.npmjs.com/package/escape-regexp). For comparison there are no downloads and [zero issues or interest](https://github.com/benjamingr/RegExp.tag) when I initiated work on a tag proposal.
90+
- Users have consistently been asking for `RegExp.escape` over the past 5 years - both in this repo and elsewhere. Packages providing this functionality are very popular (see [escape-string-regexp](https://www.npmjs.com/package/escape-string-regexp) and [escape-regexp](https://www.npmjs.com/package/escape-regexp)). For comparison there are no downloads and [zero issues or interest](https://github.com/benjamingr/RegExp.tag) when I initiated work on a tag proposal.
9191
- When interviewing users regarding `RegExp.tag` when trying to get motivating use cases for the API - users spoken with were very confused because of the tagged templates. The feedback was negative enough and they found the API confusing and awkward enough for me to stop pursuing it.
9292
- Virtually every other programming language offers `.escape` (see "in other languages") and made the trade-off to ship `.escape` eventhough most of these could have shipped a tagged template API (equivalent, per language).
9393
- This proposal does not block effort on a tag proposal, the two proposals are not mutually exclusive and both APIs can eventually land.

0 commit comments

Comments
 (0)