allow 8 digits in 2fa code regex (#332)
change 2fa regex to allow for 8 digits in a row
This commit is contained in:
@@ -138,7 +138,7 @@ namespace SwayNotificationCenter {
|
|||||||
|
|
||||||
construct {
|
construct {
|
||||||
try {
|
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);
|
RegexCompileFlags.MULTILINE);
|
||||||
string joined_tags = string.joinv ("|", TAGS);
|
string joined_tags = string.joinv ("|", TAGS);
|
||||||
tag_regex = new Regex ("<(/?(?:%s))>".printf (joined_tags));
|
tag_regex = new Regex ("<(/?(?:%s))>".printf (joined_tags));
|
||||||
|
Reference in New Issue
Block a user