SoFriendly / 2fhey

Creative Commons Zero v1.0 Universal
115 stars 23 forks source link

Unable to extract code from Chinese #54

Open BMPixel opened 5 months ago

BMPixel commented 5 months ago

For example following message contains verification code 700185. Apple message can correct parse it while 2fhey detect "是" as the code (which means 'is' in Chinese)

【知乎】你的验证码是 700185,此验证码用于登录知乎或重置密码。10 分钟内有效。

Most verification codes in Chinese are sequences of 5-7 digits. The 2fa message can be detected with keyword "验证码". It will be great to have Chinese support as in China 2fa code message is much more frequently used.

itsthisjustin commented 5 months ago

Will look into this. Odd that it detects the Chinese character at all.