Skip to content

Commit

Permalink
chore(jest): pin version
Browse files Browse the repository at this point in the history
  • Loading branch information
bhough committed May 31, 2021
1 parent d51efba commit e483693
Show file tree
Hide file tree
Showing 4 changed files with 511 additions and 495 deletions.
2 changes: 1 addition & 1 deletion docs/assets/polished.js
Expand Up @@ -2392,7 +2392,7 @@
};
}

var hslaMatched = hslaRegex.exec(normalizedColor);
var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));

if (hslaMatched) {
var _hue = parseInt("" + hslaMatched[1], 10);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -76,7 +76,7 @@
"@rollup/plugin-node-resolve": "^13.0.0",
"@rollup/plugin-replace": "^2.4.2",
"babel-eslint": "^10.1.0",
"babel-jest": "^27.0.2",
"babel-jest": "^26.6.3",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"babel-plugin-preval": "5.0.0",
Expand All @@ -89,7 +89,7 @@
"flow-bin": "^0.133.0",
"flow-copy-source": "^2.0.8",
"husky": "^6.0.0",
"jest": "^27.0.3",
"jest": "^26.6.3",
"lint-staged": "^11.0.0",
"npm-watch": "^0.9.0",
"prettier": "^2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/color/parseToRgb.js
Expand Up @@ -99,7 +99,7 @@ export default function parseToRgb(color: string): RgbColor | RgbaColor {
blue: parseInt(`${hslRgbMatched[3]}`, 10),
}
}
const hslaMatched = hslaRegex.exec(normalizedColor)
const hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50))
if (hslaMatched) {
const hue = parseInt(`${hslaMatched[1]}`, 10)
const saturation = parseInt(`${hslaMatched[2]}`, 10) / 100
Expand Down

0 comments on commit e483693

Please sign in to comment.