[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:
enaples 2023-08-18 10:48:45 +02:00 committed by GitHub
parent c8414829d7
commit b43e7efa0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
// update cache version every time there is a new deployment
// so the service worker reinitializes the cache
const CACHE_VERSION = 51
const CACHE_VERSION = 52
const CURRENT_CACHE = `lnbits-${CACHE_VERSION}-`
const getApiKey = request => {

File diff suppressed because one or more lines are too long

View File

@ -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) {