[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 09:48:45 +01:00
committed by GitHub
co-authored by enaples
parent c8414829d7
commit b43e7efa0b
3 changed files with 3 additions and 3 deletions
+1 -1
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 => {
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
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) {