luci-base: validation.js: fix xgettext quirk
authorJo-Philipp Wich <jo@mein.io>
Mon, 3 Apr 2023 12:05:00 +0000 (14:05 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 3 Apr 2023 12:05:00 +0000 (14:05 +0200)
commitb07ac8add8f6d2081663341b55b999e4d9c59dcd
tree759b4497b368ef2f0c6a4db99b2370a2262bef71
parentdd1111407d8f0b1f7f761c5ebbe6ae43a268a4a4
luci-base: validation.js: fix xgettext quirk

The xgettext utility does not properly discard `/` inside regex character
classes, causing a false positive unterminated string error.

Avoid the issue by explicitly escaping the embedded slash.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/validation.js