diff --git a/spec.emu b/spec.emu index 8ef5139..d5212fb 100644 --- a/spec.emu +++ b/spec.emu @@ -26,7 +26,7 @@ contributors: Jordan Harband IdentityEscape[UnicodeMode] :: [+UnicodeMode] SyntaxCharacter - [+UnicodeMode] `/` `,` `-` `=` `<` `>` `/` `#` `&` `!` `%` `:` `;` `@` `~` `'` `"` + [+UnicodeMode] `/` `,` `-` `=` `<` `>` `#` `&` `!` `%` `:` `;` `@` `~` `'` `"` `\`` [+UnicodeMode] WhiteSpace [~UnicodeMode] SourceCharacter but not UnicodeIDContinue @@ -41,7 +41,7 @@ contributors: Jordan Harband

RegExp.escape ( _S_ )

-

This method takes a string and returns a version of it with all control characters escaped. It escapes characters that would otherwise be treated by the regular expressions engine as special meta characters using an escape sequence character.

+

This method takes a string and returns a similar string in which each character that is potentially special in a regular expression |Pattern| has been replaced by an escape sequence representing that character.

It performs the following steps when called:

The phrase "the ASCII punctuators that need escaping"