summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorPaul Donald <newtwen@gmail.com>2024-01-31 02:04:27 +0100
committerPaul Donald <newtwen@gmail.com>2024-01-31 02:55:13 +0100
commit2dc1fccbd1f46d3fa2689cc1eae3899e5a807a4f (patch)
treee0cf5cb9f339749f0be99b78e03810e194b94048 /modules/luci-base
parentd46da53bcd1f822d5b11772fc85b475b9d9174ff (diff)
luci-base: Code quality fixes
reduce backtracking in regex Signed-off-by: Paul Donald <newtwen@gmail.com>
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/validation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/validation.js b/modules/luci-base/htdocs/luci-static/resources/validation.js
index 791a84823d..9504e7f2c4 100644
--- a/modules/luci-base/htdocs/luci-static/resources/validation.js
+++ b/modules/luci-base/htdocs/luci-static/resources/validation.js
@@ -589,7 +589,7 @@ var ValidatorFactory = baseclass.extend({
},
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'));
},