X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/967eed676fc83d15b26149047f353ac61faa8217..00b87c973f8370c8a3aff3288850156195001533:/src/funding/utils.py?ds=inline diff --git a/src/funding/utils.py b/src/funding/utils.py index e93d8161d..afebd8a74 100644 --- a/src/funding/utils.py +++ b/src/funding/utils.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # @@ -12,7 +11,7 @@ from fnpdjango.utils.text import char_map sane_in_payu_title = re.escape( string.ascii_uppercase + string.ascii_lowercase + - u'ąćęłńóśźżĄĆĘŁŃÓŚŹŻ' + + 'ąćęłńóśźżĄĆĘŁŃÓŚŹŻ' + string.digits + ' ' + "".join(set(string.punctuation) - set('\\'))