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