Update mapping for regex unicode plugin in preset-env (#9091)

This commit is contained in:
Brian Ng 2018-11-27 22:09:15 -06:00 committed by GitHub
parent 4f2eacf615
commit 3fda01b185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 5 deletions

View File

@ -49,6 +49,7 @@ const es = {
features: [ features: [
'RegExp "y" and "u" flags / "u" flag, case folding', 'RegExp "y" and "u" flags / "u" flag, case folding',
'RegExp "y" and "u" flags / "u" flag, Unicode code point escapes', 'RegExp "y" and "u" flags / "u" flag, Unicode code point escapes',
'RegExp "y" and "u" flags / "u" flag, non-BMP Unicode characters',
'RegExp "y" and "u" flags / "u" flag', 'RegExp "y" and "u" flags / "u" flag',
], ],
}, },

View File

@ -131,9 +131,9 @@
"chrome": "50", "chrome": "50",
"edge": "13", "edge": "13",
"firefox": "46", "firefox": "46",
"safari": "10", "safari": "12",
"node": "6", "node": "6",
"ios": "10", "ios": "12",
"opera": "37", "opera": "37",
"electron": "1.1" "electron": "1.1"
}, },

View File

@ -65,7 +65,7 @@
"@babel/helper-fixtures": "^7.0.0", "@babel/helper-fixtures": "^7.0.0",
"@babel/helper-plugin-test-runner": "^7.0.0", "@babel/helper-plugin-test-runner": "^7.0.0",
"caniuse-db": "1.0.30000851", "caniuse-db": "1.0.30000851",
"compat-table": "kangax/compat-table#5c8c113068e15298abd300ec9d064abb5edc636e", "compat-table": "kangax/compat-table#29ec2bed5a475b42388866cfc7d24f3f44b12eba",
"electron-to-chromium": "1.3.79" "electron-to-chromium": "1.3.79"
} }
} }

View File

@ -232,8 +232,8 @@ const getLowestImplementedVersion = ({ features }, env) => {
return envTests return envTests
.map(str => str.replace(env, "")) .map(str => str.replace(env, ""))
.reduce((a, b) => { .reduce((a, b) => {
if (b === unreleasedLabelForEnv) { if (a === unreleasedLabelForEnv || b === unreleasedLabelForEnv) {
return b; return unreleasedLabelForEnv;
} }
return semver.lt(semver.coerce(a), semver.coerce(b)) ? b : a; return semver.lt(semver.coerce(a), semver.coerce(b)) ? b : a;