squatto / alfred-imessage-2fa

iMessage 2FA Workflow for Alfred
MIT License
111 stars 7 forks source link

quick fix to find 3-digit codes e.g. Zocdoc #19

Closed luckman212 closed 3 years ago

luckman212 commented 3 years ago

Hey @squatto 👋

Today I noticed that Zocdoc uses 3 digit 2fa codes (pretty rare, don't think I've seen that before). Here's a quick hack to support these. Works on my end but would probably be good to do a bit of checking.

Thanks again for this super useful workflow!

squatto commented 3 years ago

@luckman212 As I mentioned in #21, this change will make it match years and phone numbers if they come right after "is":

image

Honestly though, since it's only looking at the last 15 minutes of messages and you're typically only going to trigger the workflow right after you get a 2FA in your messages (AKA it will be the most recent message), I don't think that's really going to be a problem! I'll merge this and release an update. Thanks for the PR!

Side note...seriously, who uses 3 digit 2FA codes? That's weird. A whopping 1000 possible codes to choose from 😂