Fix tag stripping to return just the string master github/master
authorMagnus Hagander <magnus@hagander.net>
Thu, 31 Jul 2025 12:44:24 +0000 (14:44 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 31 Jul 2025 12:44:24 +0000 (14:44 +0200)
postgresqleu/transferwise/api.py

index 86661953671abe32130415a744c95a748518f46e..6be5834e4f326bd4bfa648e62076f33ff70f080e 100644 (file)
@@ -259,7 +259,7 @@ class TransferwiseApi(object):
         raise Exception("Failed to parse transferwise amount from '{}'".format(amount))
 
     def strip_tw_tags(self, s):
-        return re.subn('</?(strong|positive|negative|strikethrough)>', '', s)
+        return re.subn('</?(strong|positive|negative|strikethrough)>', '', s)[0]
 
     def validate_iban(self, iban):
         try: