mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Handle tables with names that start with digits
This commit is contained in:
parent
8252daa4c1
commit
cbb59e3801
2 changed files with 11 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue