Skip to content

Commit

Permalink
Fix prefix when parsing lnurls
Browse files Browse the repository at this point in the history
  • Loading branch information
dpad85 committed Aug 28, 2023
1 parent 6863b41 commit a56bcde
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ sealed interface Lnurl {
* Throws an exception if the source is malformed or invalid.
*/
fun extractLnurl(source: String): Lnurl {
val input = Parser.trimMatchingPrefix(source, Parser.lightningPrefixes + Parser.bitcoinPrefixes + Parser.lightningPrefixes)
val input = Parser.trimMatchingPrefix(source, Parser.lightningPrefixes + Parser.bitcoinPrefixes + Parser.lnurlPrefixes)
val url: Url = try {
parseBech32Url(input)
} catch (bech32Ex: Exception) {
Expand Down

0 comments on commit a56bcde

Please sign in to comment.