Handle tables with names that start with digits

This commit is contained in:
Simon Willison 2017-11-14 10:13:37 -08:00
commit cbb59e3801
2 changed files with 11 additions and 2 deletions

View file

@ -121,7 +121,7 @@ def path_with_ext(request, ext):
_css_re = re.compile(r'''['"\n\\]''')
_boring_table_name_re = re.compile(r'^[a-zA-Z0-9_]+$')
_boring_table_name_re = re.compile(r'^[a-zA-Z_][a-zA-Z0-9_]*$')
def escape_css_string(s):