mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-17 21:31:55 +01:00
[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:
parent
c8414829d7
commit
b43e7efa0b
@ -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 => {
|
||||
|
2
lnbits/static/bundle.min.js
vendored
2
lnbits/static/bundle.min.js
vendored
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user