mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
www/pgm2/console.js: shorten "Any number" regexp in the wizard (Forum #106489)
git-svn-id: https://svn.fhem.de/fhem/trunk@20828 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
90e6c462d2
commit
5f0291f3ae
@ -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…
Reference in New Issue
Block a user