2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

fhemweb.js: fix "unwanted noarg" Problem (Forum #116748)

git-svn-id: https://svn.fhem.de/fhem/trunk@23364 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-12-16 11:34:06 +00:00
parent 99c659a384
commit 79a5f3d2f2

View File

@ -1257,7 +1257,7 @@ FW_detailSelect(selEl, mayMissing)
if(selVal != null && selVal != undefined) { if(selVal != null && selVal != undefined) {
for(var i1=0; i1<listArr.length; i1++) { for(var i1=0; i1<listArr.length; i1++) {
var aap = listArr[i1].split(":"); var aap = listArr[i1].split(":");
if(selVal.match(new RegExp(aap[0]))) { if(selVal.match(new RegExp("^"+aap[0]+"$"))) {
if(aap.length > 2) { if(aap.length > 2) {
var re = aap.shift(); var re = aap.shift();
aap = [re, aap.join(":")]; aap = [re, aap.join(":")];