mirror of
https://github.com/ErikReider/SwayNotificationCenter.git
synced 2024-10-27 01:51:26 +03:00
allow 8 digits in 2fa code regex (#332)
change 2fa regex to allow for 8 digits in a row
This commit is contained in:
parent
90688d0fe9
commit
3ed3ab8fec
@ -138,7 +138,7 @@ namespace SwayNotificationCenter {
|
||||
|
||||
construct {
|
||||
try {
|
||||
code_regex = new Regex ("(?<= |^)(\\d{3}(-| )\\d{3}|\\d{4,7})(?= |$|\\.|,)",
|
||||
code_regex = new Regex ("(?<= |^)(\\d{3}(-| )\\d{3}|\\d{4,8})(?= |$|\\.|,)",
|
||||
RegexCompileFlags.MULTILINE);
|
||||
string joined_tags = string.joinv ("|", TAGS);
|
||||
tag_regex = new Regex ("<(/?(?:%s))>".printf (joined_tags));
|
||||
|
Loading…
Reference in New Issue
Block a user