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: // 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 {