@formatjs/icu-messageformat-parser 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/parser.js CHANGED
@@ -26,7 +26,7 @@ var isSafeInteger = hasNativeIsSafeInteger
26
26
  // IE11 does not support y and u.
27
27
  var REGEX_SUPPORTS_U_AND_Y = true;
28
28
  try {
29
- RE('', 'yu');
29
+ RE('([^\\p{White_Space}\\p{Pattern_Syntax}]*)', 'yu');
30
30
  }
31
31
  catch (_) {
32
32
  REGEX_SUPPORTS_U_AND_Y = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/icu-messageformat-parser",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "license": "MIT",
package/parser.js CHANGED
@@ -29,7 +29,7 @@ var isSafeInteger = hasNativeIsSafeInteger
29
29
  // IE11 does not support y and u.
30
30
  var REGEX_SUPPORTS_U_AND_Y = true;
31
31
  try {
32
- RE('', 'yu');
32
+ RE('([^\\p{White_Space}\\p{Pattern_Syntax}]*)', 'yu');
33
33
  }
34
34
  catch (_) {
35
35
  REGEX_SUPPORTS_U_AND_Y = false;