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:
Claude
2026-08-29 15:34:47 +00:00
parent f4bf36030b
commit c6916d49d1
@@ -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