Merge pull request #17225 from hrwX/naming_series

fix(Naming Series): Naming series
This commit is contained in:
Nabin Hait
2019-04-15 10:05:17 +05:30
committed by GitHub

View File

@@ -135,7 +135,7 @@ class NamingSeries(Document):
def validate_series_name(self, n):
import re
if not re.match("^[\w\- /.#]*$", n, re.UNICODE):
if not (re.match("^[\w\- /.#]*$", n, re.UNICODE) or re.match("\{(.*?)\}", n, re.UNICODE)):
throw(_('Special Characters except "-", "#", "." and "/" not allowed in naming series'))
def get_options(self, arg=None):