diff --git a/composer.json b/composer.json
index f3084e7..981deba 100644
--- a/composer.json
+++ b/composer.json
@@ -1,7 +1,7 @@
{
"name": "squatto/alfred-imessage-2fa",
"description": "Find two-factor authentication codes in your recent iMessage messages",
- "version": "1.1.0",
+ "version": "1.2.0",
"keywords": [
"alfred",
"alfred-workflow",
diff --git a/find-messages.php b/find-messages.php
index 8b51baf..d07e64e 100644
--- a/find-messages.php
+++ b/find-messages.php
@@ -85,7 +85,7 @@
$max = 8;
while ($message = $query->fetch(PDO::FETCH_ASSOC)) {
- if (preg_match('/(^|\s|\R|\t)(\d{5,8})($|\s|\R|\t)/', $message['text'], $matches)) {
+ if (preg_match('/(^|\s|\R|\t|G-)(\d{5,8})($|\s|\R|\t)/', $message['text'], $matches)) {
$found++;
$code = $matches[2];
$date = formatDate($message['message_date']);
diff --git a/iMessage.2FA.alfredworkflow b/iMessage.2FA.alfredworkflow
index 0734cc9..d97de3c 100644
Binary files a/iMessage.2FA.alfredworkflow and b/iMessage.2FA.alfredworkflow differ
diff --git a/info.plist b/info.plist
index a8c09d8..72ae309 100644
--- a/info.plist
+++ b/info.plist
@@ -196,8 +196,10 @@ Select a 2FA code and press `<enter>` to copy it to your clipboard. Press
200
+ variablesdontexport
+
version
- 1.1.0
+ 1.2.0
webaddress
https://github.com/squatto/alfred-imessage-2fa/