Skip to content

Commit

Permalink
Fix lightning address validation
Browse files Browse the repository at this point in the history
  • Loading branch information
minibits-cash committed Jan 18, 2024
1 parent 7726406 commit e464038
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "minibits_wallet",
"version": "0.1.5-beta.25",
"version": "0.1.5-beta.26",
"private": true,
"scripts": {
"android:clean": "cd android && ./gradlew clean",
Expand Down
5 changes: 2 additions & 3 deletions src/services/lnurl/lnurlUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@ function extractLnurlAddress(maybeAddress: string) {


function isLnurlAddress(address: string) {
// Regular expression for a basic email validation
const regex = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/

// Regular expression for a basic email validation
const regex = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/
return regex.test(address)
}

Expand Down

0 comments on commit e464038

Please sign in to comment.