Skip to content

Commit

Permalink
Merge pull request #41 from Icarus-Xu/add-alipay-otp
Browse files Browse the repository at this point in the history
add alipay otp message
  • Loading branch information
jd1378 authored Nov 21, 2023
2 parents f943833 + 595dcc7 commit 64e9dd4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class CodeExtractor {
"c[oó]digo",
"clave",
"验证码",
"校验码",
"識別碼",
"認證",
"驗證",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -502,4 +502,11 @@ code: 123456
assertEquals(false, CodeIgnore.shouldIgnore(msg))
assertEquals("123456", CodeExtractor.getCode(msg))
}

@Test
fun chineseAlipayCode() {
val msg = "【支付宝】校验码1234,付款金额169.00,你正在使用支付宝,需要进行校验,请勿向任何人提供您收到的短信校验码"
assertEquals(false, CodeIgnore.shouldIgnore(msg))
assertEquals("1234", CodeExtractor.getCode(msg))
}
}

0 comments on commit 64e9dd4

Please sign in to comment.