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:
|
// Possible formats:
|
||||||
// Title
|
// Title
|
||||||
// |id| Title
|
// |id| Title
|
||||||
// |id,sound| Title
|
// |id-sound| Title
|
||||||
// |,sound| Title
|
// |-sound| Title
|
||||||
const match = subject.match(/^(?:\|([^,]*?)(?:,(.+?)){0,1}\|){0,1}\s*(.+?)$/m);
|
const match = subject.match(/^(?:\|([^,]*?)(?:-(.+?)){0,1}\|){0,1}\s*(.+?)$/m);
|
||||||
|
|
||||||
if (match == null)
|
if (match == null)
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user