File tree Expand file tree Collapse file tree 4 files changed +511
-495
lines changed Expand file tree Collapse file tree 4 files changed +511
-495
lines changed Original file line number Diff line number Diff line change 2392
2392
} ;
2393
2393
}
2394
2394
2395
- var hslaMatched = hslaRegex . exec ( normalizedColor ) ;
2395
+ var hslaMatched = hslaRegex . exec ( normalizedColor . substring ( 0 , 50 ) ) ;
2396
2396
2397
2397
if ( hslaMatched ) {
2398
2398
var _hue = parseInt ( "" + hslaMatched [ 1 ] , 10 ) ;
Original file line number Diff line number Diff line change 76
76
"@rollup/plugin-node-resolve" : " ^13.0.0" ,
77
77
"@rollup/plugin-replace" : " ^2.4.2" ,
78
78
"babel-eslint" : " ^10.1.0" ,
79
- "babel-jest" : " ^27.0.2 " ,
79
+ "babel-jest" : " ^26.6.3 " ,
80
80
"babel-plugin-add-module-exports" : " ^1.0.2" ,
81
81
"babel-plugin-annotate-pure-calls" : " ^0.4.0" ,
82
82
"babel-plugin-preval" : " 5.0.0" ,
89
89
"flow-bin" : " ^0.133.0" ,
90
90
"flow-copy-source" : " ^2.0.8" ,
91
91
"husky" : " ^6.0.0" ,
92
- "jest" : " ^27.0 .3" ,
92
+ "jest" : " ^26.6 .3" ,
93
93
"lint-staged" : " ^11.0.0" ,
94
94
"npm-watch" : " ^0.9.0" ,
95
95
"prettier" : " ^2.3.0" ,
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export default function parseToRgb(color: string): RgbColor | RgbaColor {
99
99
blue : parseInt ( `${ hslRgbMatched [ 3 ] } ` , 10 ) ,
100
100
}
101
101
}
102
- const hslaMatched = hslaRegex . exec ( normalizedColor )
102
+ const hslaMatched = hslaRegex . exec ( normalizedColor . substring ( 0 , 50 ) )
103
103
if ( hslaMatched ) {
104
104
const hue = parseInt ( `${ hslaMatched [ 1 ] } ` , 10 )
105
105
const saturation = parseInt ( `${ hslaMatched [ 2 ] } ` , 10 ) / 100
You can’t perform that action at this time.
0 commit comments