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

fhemweb.js: escape , in css selector (Forum #112753)

git-svn-id: https://svn.fhem.de/fhem/trunk@22372 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-07-09 14:55:10 +00:00
parent e5876587ba
commit 678b9ed2c9

View File

@ -1002,7 +1002,7 @@ FW_escapeSelector(s)
{
if(typeof s != 'string')
return s;
return s.replace(/[ .#\[\]>]/g, function(r) { return '\\'+r });
return s.replace(/[ .#\[\]>,]/g, function(r) { return '\\'+r });
}
/*************** LONGPOLL START **************/