luci-app-dockerman: jsmin workaround
authorPaul Donald <redacted>
Thu, 5 Feb 2026 17:06:43 +0000 (18:06 +0100)
committerPaul Donald <redacted>
Thu, 5 Feb 2026 17:09:15 +0000 (18:09 +0100)
commitf0ff5612a1200803069fab48fa0521909e6a8e48
tree353f8104e1c6f1266951a492fd1fa8106a4f270e
parentaba4fd8a90f0fc9654e22f0ec0a149e5857f0c3c
luci-app-dockerman: jsmin workaround

jsmin state machine is basic so it fails on this:

return /^https?:\/\//i.test(addr)

interpreting the final // as comment start, not recognizing
it is in a regex. But if we wrap the regex in () then all
is well. jsmin has the comment:

action recognizes a regular expression if it is preceded by the likes of
'(' or ',' or '='.

Signed-off-by: Paul Donald <redacted>
applications/luci-app-dockerman/htdocs/luci-static/resources/dockerman/common.js
git clone https://git.99rst.org/PROJECT