Skip to content

Commit

Permalink
fix(isHSL): remove unnecessary use of let
Browse files Browse the repository at this point in the history
  • Loading branch information
tux-tn committed Apr 19, 2021
1 parent ab27c57 commit f967d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/isHSL.js
Expand Up @@ -9,7 +9,7 @@ export default function isHSL(str) {
assertString(str);

// Strip duplicate spaces before calling the validation regex (See #1598 for more info)
let strippedStr = str.replace(/\s+/g, ' ').replace(/\s?(hsla?\(|\)|,)\s?/ig, '$1');
const strippedStr = str.replace(/\s+/g, ' ').replace(/\s?(hsla?\(|\)|,)\s?/ig, '$1');

if (strippedStr.indexOf(',') !== -1) {
return hslComma.test(strippedStr);
Expand Down

0 comments on commit f967d0a

Please sign in to comment.