some small changes

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
Jakob Röhrl
2019-04-26 11:37:34 +02:00
committed by Julius Härtl
parent 907bf57460
commit 3f272b91c6
10 changed files with 140 additions and 128 deletions

View File

@@ -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
}
}