Unverified Commit 3ed3ab8f authored by Daniel Morgan's avatar Daniel Morgan Committed by GitHub

allow 8 digits in 2fa code regex (#332)

change 2fa regex to allow for 8 digits in a row
parent 90688d0f
...@@ -138,7 +138,7 @@ namespace SwayNotificationCenter { ...@@ -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 ("&lt;(/?(?:%s))&gt;".printf (joined_tags)); tag_regex = new Regex ("&lt;(/?(?:%s))&gt;".printf (joined_tags));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment