Skip to content

Commit

Permalink
Allow underscore to start instance names (#2335)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Dec 9, 2021
1 parent 96c027b commit c0cc260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic/base.py
Expand Up @@ -11,7 +11,7 @@
from sanic.mixins.signals import SignalMixin


VALID_NAME = re.compile(r"^[a-zA-Z][a-zA-Z0-9_\-]*$")
VALID_NAME = re.compile(r"^[a-zA-Z_][a-zA-Z0-9_\-]*$")


class BaseSanic(
Expand Down

0 comments on commit c0cc260

Please sign in to comment.