luci-base: Code quality fixes
reduce backtracking in regex Signed-off-by: Paul Donald <newtwen@gmail.com>
This commit is contained in:
parent
d46da53bcd
commit
2dc1fccbd1
1 changed files with 1 additions and 1 deletions
|
@ -589,7 +589,7 @@ var ValidatorFactory = baseclass.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
hexstring: function() {
|
hexstring: function() {
|
||||||
return this.assert(this.value.match(/^([a-f0-9][a-f0-9]|[A-F0-9][A-F0-9])+$/),
|
return this.assert(this.value.match(/^([A-F0-9]{2})+$/i),
|
||||||
_('hexadecimal encoded value'));
|
_('hexadecimal encoded value'));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue