Skip to content

Commit

Permalink
feature/recognize-google-2fa-codes (#5)
Browse files Browse the repository at this point in the history
feature/recognize-google-2fa-codes
  • Loading branch information
squatto authored Feb 2, 2020
2 parents e65a8b5 + ca0fc2c commit 97dcd53
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion find-messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down
Binary file modified iMessage.2FA.alfredworkflow
Binary file not shown.
4 changes: 3 additions & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,10 @@ Select a 2FA code and press `<enter>` to copy it to your clipboard. Press
<integer>200</integer>
</dict>
</dict>
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>1.1.0</string>
<string>1.2.0</string>
<key>webaddress</key>
<string>https://github.com/squatto/alfred-imessage-2fa/</string>
</dict>
Expand Down

0 comments on commit 97dcd53

Please sign in to comment.