From 0a7863e4ab52c0641c806aa3e998d215e3419f98 Mon Sep 17 00:00:00 2001 From: Daniel Morgan <33032008+scarwire@users.noreply.github.com> Date: Mon, 23 Oct 2023 23:11:08 +0200 Subject: [PATCH] update 2fa code regex change 2fa regex to allow for 8 digits in a row --- src/notification/notification.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notification/notification.vala b/src/notification/notification.vala index 8ace4833..765c61e1 100644 --- a/src/notification/notification.vala +++ b/src/notification/notification.vala @@ -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));