From c907f8703a918c1ba8b18ab7dd274dd44c6a743e Mon Sep 17 00:00:00 2001 From: James Kyle Date: Mon, 26 Jan 2015 11:36:41 -0800 Subject: [PATCH] Fix regex transpilation test for regexpu 1.1 --- package.json | 2 +- .../fixtures/transformation/es6-unicode-regex/basic/expected.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e6d4a0ee02..3b78aaaf2c 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "output-file-sync": "^1.1.0", "private": "0.1.6", "regenerator": "0.8.9", - "regexpu": "1.0.0", + "regexpu": "1.1.0", "roadrunner": "1.0.4", "source-map": "0.1.43", "source-map-support": "0.2.9" diff --git a/test/fixtures/transformation/es6-unicode-regex/basic/expected.js b/test/fixtures/transformation/es6-unicode-regex/basic/expected.js index eb24a69373..670ac43a38 100644 --- a/test/fixtures/transformation/es6-unicode-regex/basic/expected.js +++ b/test/fixtures/transformation/es6-unicode-regex/basic/expected.js @@ -1,4 +1,4 @@ "use strict"; var string = "foo💩bar"; -var match = string.match(/foo((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF]))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/);