BugFix for nostr: in content.
This commit is contained in:
@@ -172,6 +172,8 @@ fun RichTextViewer(
|
|||||||
ClickableEmail(word)
|
ClickableEmail(word)
|
||||||
} else if (Patterns.PHONE.matcher(word).matches() && word.length > 6) {
|
} else if (Patterns.PHONE.matcher(word).matches() && word.length > 6) {
|
||||||
ClickablePhone(word)
|
ClickablePhone(word)
|
||||||
|
} else if (isBechLink(word)) {
|
||||||
|
BechLink(word, navController)
|
||||||
} else if (noProtocolUrlValidator.matcher(word).matches()) {
|
} else if (noProtocolUrlValidator.matcher(word).matches()) {
|
||||||
val matcher = noProtocolUrlValidator.matcher(word)
|
val matcher = noProtocolUrlValidator.matcher(word)
|
||||||
matcher.find()
|
matcher.find()
|
||||||
@@ -184,8 +186,6 @@ fun RichTextViewer(
|
|||||||
TagLink(word, tags, canPreview, backgroundColor, accountViewModel, navController)
|
TagLink(word, tags, canPreview, backgroundColor, accountViewModel, navController)
|
||||||
} else if (hashTagsPattern.matcher(word).matches()) {
|
} else if (hashTagsPattern.matcher(word).matches()) {
|
||||||
HashTag(word, accountViewModel, navController)
|
HashTag(word, accountViewModel, navController)
|
||||||
} else if (isBechLink(word)) {
|
|
||||||
BechLink(word, navController)
|
|
||||||
} else {
|
} else {
|
||||||
Text(
|
Text(
|
||||||
text = "$word ",
|
text = "$word ",
|
||||||
@@ -199,6 +199,8 @@ fun RichTextViewer(
|
|||||||
ClickableEmail(word)
|
ClickableEmail(word)
|
||||||
} else if (Patterns.PHONE.matcher(word).matches() && word.length > 6) {
|
} else if (Patterns.PHONE.matcher(word).matches() && word.length > 6) {
|
||||||
ClickablePhone(word)
|
ClickablePhone(word)
|
||||||
|
} else if (isBechLink(word)) {
|
||||||
|
BechLink(word, navController)
|
||||||
} else if (noProtocolUrlValidator.matcher(word).matches()) {
|
} else if (noProtocolUrlValidator.matcher(word).matches()) {
|
||||||
val matcher = noProtocolUrlValidator.matcher(word)
|
val matcher = noProtocolUrlValidator.matcher(word)
|
||||||
matcher.find()
|
matcher.find()
|
||||||
@@ -211,8 +213,6 @@ fun RichTextViewer(
|
|||||||
TagLink(word, tags, canPreview, backgroundColor, accountViewModel, navController)
|
TagLink(word, tags, canPreview, backgroundColor, accountViewModel, navController)
|
||||||
} else if (hashTagsPattern.matcher(word).matches()) {
|
} else if (hashTagsPattern.matcher(word).matches()) {
|
||||||
HashTag(word, accountViewModel, navController)
|
HashTag(word, accountViewModel, navController)
|
||||||
} else if (isBechLink(word)) {
|
|
||||||
BechLink(word, navController)
|
|
||||||
} else {
|
} else {
|
||||||
Text(
|
Text(
|
||||||
text = "$word ",
|
text = "$word ",
|
||||||
|
|||||||
Reference in New Issue
Block a user