Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add alipay otp message #41

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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))
}
}