chore: lint using 🐊Putout

This commit is contained in:
coderaiser
2022-09-15 17:19:34 +03:00
parent d3fd3d0f22
commit 25eb7d6472
5 changed files with 25 additions and 23 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ export namespace color {
*/
export namespace css {
export function toColor(css: string): IColor {
if (css.match(/#[0-9a-f]{3,8}/i)) {
if (css.match(/#[\da-f]{3,8}/i)) {
switch (css.length) {
case 4: { // #rgb
const r = parseInt(css.slice(1, 2).repeat(2), 16);