Fixing tests

This commit is contained in:
Vitor Pamplona
2024-05-29 12:50:46 -04:00
parent f6a16e4394
commit c7a4161799
2 changed files with 5 additions and 5 deletions
@@ -214,14 +214,14 @@ class RichTextParser() {
if (word.startsWith("cashuA", true)) return CashuSegment(word)
if (startsWithNIP19Scheme(word)) return BechSegment(word)
if (word.startsWith("#")) return parseHash(word, tags)
if (word.contains("@")) {
if (Patterns.EMAIL_ADDRESS.matcher(word).matches()) return EmailSegment(word)
}
if (startsWithNIP19Scheme(word)) return BechSegment(word)
if (isPotentialPhoneNumber(word) && !isDate(word)) {
if (Patterns.PHONE.matcher(word).matches()) return PhoneSegment(word)
}