Octal escape sequences misinformation #17

Closed
eligrey opened this Issue Jan 15, 2011 · 2 comments

Comments

Projects
None yet
3 participants

eligrey commented Jan 15, 2011

The statement, "Also, weren't octals removed for escape sequences in ES5?" is wrong. Octal escape sequences were never removed from regexp syntax.

Contributor

csnover commented Jan 17, 2011

“ECMAScript 3 removed octal character references from regular expression syntax, although \0 was kept as a convenient exception that allows easily matching a NUL character. However, browsers have generally kept full octal support around for backward compatibility.” http://blog.stevenlevithan.com/archives/fixing-javascript-regexp

Collaborator

Garbee commented Mar 5, 2013

Annotated ECMAScript 5.1 does show that octal sequences have been removed. So all is good! 😄

Garbee closed this Mar 5, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment