Skip to content

Commit

Permalink
fix typo in discussions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
urish authored Sep 28, 2023
1 parent cf7270b commit ffc299d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/other_languages/discussions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit ffc299d

Please sign in to comment.