mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-06 03:38:23 +00:00
refactor: keep the bracket-peel helper off the public surface
`nip19OpeningPunctuationLength` has one caller, inside this file. Nothing outside needs it, and the behaviour is covered through `parseText`.
This commit is contained in:
+1
-1
@@ -676,7 +676,7 @@ class RichTextParser {
|
||||
* the URI inside the parentheses and [fixMissingSpaces] separates it. Bare
|
||||
* `npub1...`/`@npub1...` are not URIs, so nothing splits them; this does.
|
||||
*/
|
||||
fun nip19OpeningPunctuationLength(word: String): Int {
|
||||
private fun nip19OpeningPunctuationLength(word: String): Int {
|
||||
if (word.isEmpty() || !isNip19OpeningPunctuation(word[0])) return 0
|
||||
|
||||
var i = 1
|
||||
|
||||
Reference in New Issue
Block a user