Skip to content

Commit

Permalink
allow 8 digits in 2fa code regex (#332)
Browse files Browse the repository at this point in the history
change 2fa regex to allow for 8 digits in a row
  • Loading branch information
scarwire authored Nov 8, 2023
1 parent 90688d0 commit 3ed3ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notification/notification.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 ("&lt;(/?(?:%s))&gt;".printf (joined_tags));
Expand Down

0 comments on commit 3ed3ab8

Please sign in to comment.