Fix linting
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
committed by
Julius Härtl
parent
4ff505934b
commit
a1abf91b40
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/**
|
||||
* @copyright Copyright (c) 2018 Julius Härtl <jus@bitgrid.net>
|
||||
*
|
||||
* @author Julius Härtl <jus@bitgrid.net>
|
||||
@@ -84,7 +84,7 @@ export default {
|
||||
},
|
||||
colorIsValid(hex) {
|
||||
|
||||
const re = new RegExp('[A-Fa-f0-9]{6}')
|
||||
const re = /[A-Fa-f0-9]{6}/
|
||||
if (re.test(hex)) {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user