X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/967eed676fc83d15b26149047f353ac61faa8217..788c99a388fd34de4c159d6a3cefed84291b95f5:/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('\\'))