Fixed app name validation (#3146)

This commit is contained in:
Angelina Sheyko 2024-04-25 03:32:36 +07:00 committed by GitHub
parent a5f9001cf9
commit cd1a30d758
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -325,7 +325,7 @@ def validate_app_name(app_name: str | None = None) -> str:
app_name if app_name else os.getcwd().split(os.path.sep)[-1].replace("-", "_")
)
# Make sure the app is not named "reflex".
if app_name == constants.Reflex.MODULE_NAME:
if app_name.lower() == constants.Reflex.MODULE_NAME:
console.error(
f"The app directory cannot be named [bold]{constants.Reflex.MODULE_NAME}[/bold]."
)