Skip to content

Commit

Permalink
fix: url parser (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipndev authored Aug 2, 2023
1 parent 9b9216f commit 152b712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parsing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ const getIntraLedgerPayResponse = ({
: destinationWithoutProtocol

if (protocol.match(/^(http|\/\/)/iu)) {
const domain = new url.URL(destination).hostname
const domain = url.parse(destination).hostname
if (!lnAddressDomains.find((lnAddressDomain) => lnAddressDomain === domain)) {
return {
valid: false,
Expand Down

0 comments on commit 152b712

Please sign in to comment.