fix regex tests

This commit is contained in:
Sebastian McKenzie 2015-02-27 21:01:13 +11:00
parent 70b25e8942
commit 999baf2888
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
"use strict"; "use strict";
var re = new RegExp("o+", y); var re = new RegExp("o+", "y");

View File

@ -1,4 +1,4 @@
"use strict"; "use strict";
var string = "foo💩bar"; var string = "foo💩bar";
var match = string.match(/foo((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))bar/); var match = string.match(/foo((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))bar/);