소스 검색

luci-mod-network: work around jsmin bug

The jsmin minifier incorrectly transforms the expression `/\*/.test(...)`
into `/\* /.test(...)`, causing the VLAN filter dialog to not recognize
PVID settings in the configuration.

Work around the issue by using an equivalent `\x2a` escape sequence instead.

Ref: https://forum.openwrt.org/t/x/99222/28
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich 3 년 전
부모
커밋
2869c9cf32
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js

+ 1 - 1
modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js

@@ -274,7 +274,7 @@ var cbiTagValue = form.Value.extend({
 
 			var t = /t/.test(s[1] || '') ? 't' : 'u';
 
-			return /\*/.test(s[1] || '') ? [t, '*'] : [t];
+			return /\x2a/.test(s[1] || '') ? [t, '*'] : [t];
 		}
 
 		return ['-'];