Skip to content

Commit

Permalink
Don't match PINs across '\r' and '\n' in free text
Browse files Browse the repository at this point in the history
  • Loading branch information
Oren Nachman committed Oct 21, 2021
1 parent 2f50536 commit 76a708b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ChimeHelper/ChimeHelper/Chime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private static List<string> GetFreeformPinsFromText(string text)
// "Chime: " (ignores case)
// "Chime(room)"
// etc
rv = GetRegexMatches(@"Chime[^A-Za-z]*([A-Za-z]+)[^A-Za-z]", text);
rv = GetRegexMatches(@"Chime[^A-Za-z\r\n]*([A-Za-z]+)[^A-Za-z]", text);
}

return rv;
Expand Down

0 comments on commit 76a708b

Please sign in to comment.