Domoticz doesn't seem to pass comma in subject, changed to dash
This commit is contained in:
parent
50dbe52377
commit
e8bcf6c9e6
@ -8,9 +8,9 @@ class SubjectParser
|
||||
// Possible formats:
|
||||
// Title
|
||||
// |id| Title
|
||||
// |id,sound| Title
|
||||
// |,sound| Title
|
||||
const match = subject.match(/^(?:\|([^,]*?)(?:,(.+?)){0,1}\|){0,1}\s*(.+?)$/m);
|
||||
// |id-sound| Title
|
||||
// |-sound| Title
|
||||
const match = subject.match(/^(?:\|([^,]*?)(?:-(.+?)){0,1}\|){0,1}\s*(.+?)$/m);
|
||||
|
||||
if (match == null)
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user