committed by
Julius Härtl
parent
907bf57460
commit
3f272b91c6
@@ -81,6 +81,15 @@ export default {
|
||||
return '#000000'
|
||||
}
|
||||
|
||||
},
|
||||
colorIsValid(hex) {
|
||||
|
||||
var re = new RegExp('[A-Fa-f0-9]{6}')
|
||||
if (re.test(hex)) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user