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 1f79e40a75
commit edc089e9ae

View File

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