mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 10:51:51 +00:00
luci-mod-system: fix JSMIN Error
jsmin cannot handle regular expressions in this format, so use RegExp() instead. fixes: #8020 Signed-off-by: Andy Chiang <AndyChiang_git@outlook.com>
This commit is contained in:
@@ -117,7 +117,7 @@ function removeKey(ev) {
|
||||
}
|
||||
|
||||
function isPemFormat(content) {
|
||||
return /-BEGIN ([A-Z ]+)?PUBLIC KEY-/.test(content);
|
||||
return new RegExp('-BEGIN ([A-Z ]+)?PUBLIC KEY-').test(content);
|
||||
}
|
||||
|
||||
function keyEnvironmentCheck(key) {
|
||||
|
||||
Reference in New Issue
Block a user