luci-base: Fix addr:port validate always fails 2425/head
authorDaniel F. Dickinson <cshored@thecshore.com>
Sat, 5 Jan 2019 05:43:37 +0000 (00:43 -0500)
committerDaniel F. Dickinson <cshored@thecshore.com>
Sat, 5 Jan 2019 05:43:37 +0000 (00:43 -0500)
commitf5a871bfe89871dbdcf430ae8c81e46c15c1424a
tree94c1dfb0fbbdff4df1e962814afa8fc870dc2c92
parent66c2bbc2790813a7889c0dd329131e5012fc83dd
luci-base: Fix addr:port validate always fails

In cbi.js there is an error which causes ipaddrport validation to always fail.
JS match() return the entire match as ret[0] and individual matches (for multiple ()) as the
subsequent list members.  So we fix it by just fixing the index in the calls that want the
individual parts.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
modules/luci-base/htdocs/luci-static/resources/cbi.js