From b04e1139e898ee5c57e9291bb3b8f7c68ead96c6 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sat, 11 Oct 2014 23:40:11 +1100 Subject: [PATCH] add ignore non-unicode regex test --- test/fixtures/syntax/unicode-regex/ignore-non-unicode/actual.js | 2 ++ .../syntax/unicode-regex/ignore-non-unicode/expected.js | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 test/fixtures/syntax/unicode-regex/ignore-non-unicode/actual.js create mode 100644 test/fixtures/syntax/unicode-regex/ignore-non-unicode/expected.js diff --git a/test/fixtures/syntax/unicode-regex/ignore-non-unicode/actual.js b/test/fixtures/syntax/unicode-regex/ignore-non-unicode/actual.js new file mode 100644 index 0000000000..df0cdc0df2 --- /dev/null +++ b/test/fixtures/syntax/unicode-regex/ignore-non-unicode/actual.js @@ -0,0 +1,2 @@ +var string = 'foo💩bar'; +var match = string.match(/foo(.)bar/); diff --git a/test/fixtures/syntax/unicode-regex/ignore-non-unicode/expected.js b/test/fixtures/syntax/unicode-regex/ignore-non-unicode/expected.js new file mode 100644 index 0000000000..5cf989a17d --- /dev/null +++ b/test/fixtures/syntax/unicode-regex/ignore-non-unicode/expected.js @@ -0,0 +1,2 @@ +var string = 'foo\uD83D\uDCA9bar'; +var match = string.match(/foo(.)bar/);