Domoticz doesn't seem to pass comma in subject, changed to dash

This commit is contained in:
Mark van Renswoude 2021-08-18 16:11:07 +02:00
parent 50dbe52377
commit e8bcf6c9e6
1 changed files with 3 additions and 3 deletions

View File

@ -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 {