From 10283bb252ea4ca131ac75b358b8eaec8f4c4bb3 Mon Sep 17 00:00:00 2001 From: anonymous <anonymous> Date: Fri, 22 Mar 2019 06:20:31 +0100 Subject: [PATCH] Add encoding info --- ckanext/odsh/validation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ckanext/odsh/validation.py b/ckanext/odsh/validation.py index 9fe3ea59..179fcab9 100644 --- a/ckanext/odsh/validation.py +++ b/ckanext/odsh/validation.py @@ -1,3 +1,4 @@ +# This Python file uses the following encoding: utf-8 import csv import re import urllib2 @@ -178,7 +179,7 @@ def known_spatial_uri(key, data, errors, context): data[('extras', new_index+1, 'value')] = spatial def tag_name_validator(value, context): - tagname_match = re.compile('[\w \-.\:\(\)äöüÄÖÜß\'\`]*$', re.UNICODE) + tagname_match = re.compile('[\w \-.\:\(\)äöüÄÖÜß\´\`]*$', re.UNICODE) if not tagname_match.match(value): raise toolkit.Invalid(_('Tag "%s" must be alphanumeric ' 'characters or symbols: -_.:()') % (value)) -- GitLab