Skip to content

Commit

Permalink
Merge pull request #34 from lollo03/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
jd1378 authored Nov 13, 2023
2 parents f7d89de + 11f8bd4 commit ba2b853
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 @@ -27,6 +27,7 @@ class CodeExtractor {
"\\bTAN\\b",
"\\bmTAN\\b",
"\\bmã\\W", // "code" in vietnamese
"codice", // "code" in italian
)

private val ignoredWords =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,4 +487,11 @@ code: 123456
assertEquals(false, CodeIgnore.shouldIgnore(msg))
assertEquals("123456", CodeExtractor.getCode(msg))
}

@Test
fun italianCode1() {
val msg = "Il tuo codice di sicurezza è: 123456"
assertEquals(false, CodeIgnore.shouldIgnore(msg))
assertEquals("123456", CodeExtractor.getCode(msg))
}
}

0 comments on commit ba2b853

Please sign in to comment.