mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
www/pgm2/console.js: shorten "Any number" regexp in the wizard (Forum #106489)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20828 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7c311f5a45
commit
fd6faa1623
@ -241,7 +241,8 @@ consAddRegexpPart()
|
||||
var evtDev=ret[3];
|
||||
var evt1 = ret[4].replace(/\s/g, ".")
|
||||
.replace(/[\^\$\[\]\(\)\\]/g, function(s){return"\\"+s});
|
||||
var evt2 = evt1.replace(/\b-?\d*\.?\d+\b/g,'.*').replace(/\.\* \.\*/g,'.*');
|
||||
var evt2 = evt1.replace(/\b-?\d*\.?\d+\b/g,'.*')
|
||||
.replace(/\.+\*(\.+\*)*/g,'.*');
|
||||
|
||||
// build the dialog
|
||||
var txt = '<style type="text/css">\n'+
|
||||
|
Loading…
x
Reference in New Issue
Block a user