many many regex improvements, thanks Paolo

This commit is contained in:
mdipierro
2019-03-12 21:32:03 -07:00
parent 73f49379ed
commit 879d8aeffd
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ import sys
import re
# This is from pydal/helpers/regex.py as of 2016-06-16
# Use this to recognize if a field name need to have an rname representation
REGEX_VALID_TB_FLD = re.compile(r'^[^\d_][_0-9a-zA-Z]*\Z')
REGEX_VALID_TB_FLD = re.compile(r'^[a-zA-Z]\w*\Z')
# For replacing invalid characters in field names
INVALID_CHARS = re.compile(r'[^a-zA-Z0-9_]')