mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
The expression parser drops everything after the first `//` outside of quotes,
but it did not account for escaped characters. A regular expression ending with
an escaped slash, such as `url.replace(/^https?:\/\//, '')`, was cut off and
reported as an unterminated regular expression, and a string with an escaped
quote followed by `//`, such as `'it\'s // here'`, was cut off as well.
(cherry picked from commit 5244ea781d)