Skip to content

Commit e483693

Browse files
committed
chore(jest): pin version
1 parent d51efba commit e483693

File tree

4 files changed

+511
-495
lines changed

4 files changed

+511
-495
lines changed

docs/assets/polished.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2392,7 +2392,7 @@
23922392
};
23932393
}
23942394

2395-
var hslaMatched = hslaRegex.exec(normalizedColor);
2395+
var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
23962396

23972397
if (hslaMatched) {
23982398
var _hue = parseInt("" + hslaMatched[1], 10);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"@rollup/plugin-node-resolve": "^13.0.0",
7777
"@rollup/plugin-replace": "^2.4.2",
7878
"babel-eslint": "^10.1.0",
79-
"babel-jest": "^27.0.2",
79+
"babel-jest": "^26.6.3",
8080
"babel-plugin-add-module-exports": "^1.0.2",
8181
"babel-plugin-annotate-pure-calls": "^0.4.0",
8282
"babel-plugin-preval": "5.0.0",
@@ -89,7 +89,7 @@
8989
"flow-bin": "^0.133.0",
9090
"flow-copy-source": "^2.0.8",
9191
"husky": "^6.0.0",
92-
"jest": "^27.0.3",
92+
"jest": "^26.6.3",
9393
"lint-staged": "^11.0.0",
9494
"npm-watch": "^0.9.0",
9595
"prettier": "^2.3.0",

src/color/parseToRgb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export default function parseToRgb(color: string): RgbColor | RgbaColor {
9999
blue: parseInt(`${hslRgbMatched[3]}`, 10),
100100
}
101101
}
102-
const hslaMatched = hslaRegex.exec(normalizedColor)
102+
const hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50))
103103
if (hslaMatched) {
104104
const hue = parseInt(`${hslaMatched[1]}`, 10)
105105
const saturation = parseInt(`${hslaMatched[2]}`, 10) / 100

0 commit comments

Comments
 (0)