mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-26 00:55:08 +01:00
removed # from color validation
This commit is contained in:
@@ -112,7 +112,7 @@ module.exports = class extends Generator {
|
||||
}
|
||||
|
||||
_colorValidator(color) {
|
||||
if( !validator.isHexColor(color) ) {
|
||||
if( !validator.isHexadecimal(color) ) {
|
||||
throw new Error('Not a hex color.');
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user