From ffc299d7e463e98d5954332718c9feaedf9315cc Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Thu, 28 Sep 2023 22:39:43 +0300 Subject: [PATCH] fix typo in discussions.md --- data/other_languages/discussions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/other_languages/discussions.md b/data/other_languages/discussions.md index 8731a73..e6d4d66 100644 --- a/data/other_languages/discussions.md +++ b/data/other_languages/discussions.md @@ -26,7 +26,7 @@ In both cases - **this means that RegExp.escape can't guarantee the length of th First of all - PHP is underspecified but the docs indicate that `. \ + * ? [ ^ ] $ ( ) { } = ! < > | : -` are escaped. -In addition to the current proposal, they esacpe `! < > : - =` which are context-sentitve parts. That is, they escape characters that might make parts of lookaheads, lookbehinds and ranges. +In addition to the current proposal, they escape `! < > : - =` which are context-sentitve parts. That is, they escape characters that might make parts of lookaheads, lookbehinds and ranges. Out of these things, `! : -` seems relevant for the ES syntax and should be independently considered. There is current discussion about context sensitive identifiers in https://github.com/benjamingr/RegExp.escape/issues/17 . They also provide a flag for escaping `/` which we find a poor design choice.