-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL Regex Expansion and Option #25
Comments
swainn
added a commit
that referenced
this issue
Mar 13, 2015
The default REGEX for URL variables is found in this function: **tethys_apps.base.url_map:django_url_preprocessor()** I expanded the default REGEX to include underscores (_) and periods (.) as follows: DEFAULT_EXPRESSION = '[0-9A-Za-z-_.]+' Note: dashes (-) were already included. I also added a new optional parameter to the UrlMap object to allow for a custom REGEX to be set. The parameter is called 'regex' and it will accept a string or a list/tuple of strings to support different regex for urls with multiple parameters.
swainn
added a commit
that referenced
this issue
Oct 7, 2022
The default REGEX for URL variables is found in this function: **tethys_apps.base.url_map:django_url_preprocessor()** I expanded the default REGEX to include underscores (_) and periods (.) as follows: DEFAULT_EXPRESSION = '[0-9A-Za-z-_.]+' Note: dashes (-) were already included. I also added a new optional parameter to the UrlMap object to allow for a custom REGEX to be set. The parameter is called 'regex' and it will accept a string or a list/tuple of strings to support different regex for urls with multiple parameters.
swainn
added a commit
that referenced
this issue
Oct 7, 2022
The default REGEX for URL variables is found in this function: **tethys_apps.base.url_map:django_url_preprocessor()** I expanded the default REGEX to include underscores (_) and periods (.) as follows: DEFAULT_EXPRESSION = '[0-9A-Za-z-_.]+' Note: dashes (-) were already included. I also added a new optional parameter to the UrlMap object to allow for a custom REGEX to be set. The parameter is called 'regex' and it will accept a string or a list/tuple of strings to support different regex for urls with multiple parameters.
swainn
added a commit
that referenced
this issue
Oct 9, 2022
The default REGEX for URL variables is found in this function: **tethys_apps.base.url_map:django_url_preprocessor()** I expanded the default REGEX to include underscores (_) and periods (.) as follows: DEFAULT_EXPRESSION = '[0-9A-Za-z-_.]+' Note: dashes (-) were already included. I also added a new optional parameter to the UrlMap object to allow for a custom REGEX to be set. The parameter is called 'regex' and it will accept a string or a list/tuple of strings to support different regex for urls with multiple parameters.
swainn
added a commit
that referenced
this issue
Oct 13, 2022
The default REGEX for URL variables is found in this function: **tethys_apps.base.url_map:django_url_preprocessor()** I expanded the default REGEX to include underscores (_) and periods (.) as follows: DEFAULT_EXPRESSION = '[0-9A-Za-z-_.]+' Note: dashes (-) were already included. I also added a new optional parameter to the UrlMap object to allow for a custom REGEX to be set. The parameter is called 'regex' and it will accept a string or a list/tuple of strings to support different regex for urls with multiple parameters.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: