[FEATURE] Adding coverage for 'lntbs' signet prefix (#1881)
* Update bolt11-decoder.js Adding coverage for 'lntbs' signet prefix * adding 'make bundle' modified files --------- Co-authored-by: enaples <enaples@users.noreply.github.com>
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -22,7 +22,7 @@ function decode(paymentRequest) {
|
||||
}
|
||||
|
||||
function decodeHumanReadablePart(humanReadablePart) {
|
||||
let prefixes = ['lnbc', 'lntb', 'lnbcrt', 'lnsb']
|
||||
let prefixes = ['lnbc', 'lntb', 'lnbcrt', 'lnsb', 'lntbs']
|
||||
let prefix
|
||||
prefixes.forEach(value => {
|
||||
if (humanReadablePart.substring(0, value.length) === value) {
|
||||
|
||||
Reference in New Issue
Block a user