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:
parent
e5876587ba
commit
678b9ed2c9
@ -1002,7 +1002,7 @@ FW_escapeSelector(s)
|
|||||||
{
|
{
|
||||||
if(typeof s != 'string')
|
if(typeof s != 'string')
|
||||||
return s;
|
return s;
|
||||||
return s.replace(/[ .#\[\]>]/g, function(r) { return '\\'+r });
|
return s.replace(/[ .#\[\]>,]/g, function(r) { return '\\'+r });
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************** LONGPOLL START **************/
|
/*************** LONGPOLL START **************/
|
||||||
|
Loading…
Reference in New Issue
Block a user