URI: 
       tupdate regexp syntax - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit d134937269cbcfd35b646eefd1f0f05c46c6c556
   DIR parent 746dd725c60a26598e7dd1837c65175ce67d17a5
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Sun,  5 May 2019 13:19:47 +0200
       
       update regexp syntax
       
       Diffstat:
         M electrum/lnaddr.py                  |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/electrum/lnaddr.py b/electrum/lnaddr.py
       t@@ -52,7 +52,7 @@ def unshorten_amount(amount):
            # BOLT #11:
            # A reader SHOULD fail if `amount` contains a non-digit, or is followed by
            # anything except a `multiplier` in the table above.
       -    if not re.fullmatch("\d+[pnum]?", str(amount)):
       +    if not re.fullmatch("\\d+[pnum]?", str(amount)):
                raise ValueError("Invalid amount '{}'".format(amount))
        
            if unit in units.keys():
       t@@ -286,7 +286,7 @@ def lndecode(a, verbose=False, expected_hrp=None):
            addr = LnAddr()
            addr.pubkey = None
        
       -    m = re.search("[^\d]+", hrp[2:])
       +    m = re.search("[^\\d]+", hrp[2:])
            if m:
                addr.currency = m.group(0)
                amountstr = hrp[2+m.end():]