Skip to content
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

Closed
swainn opened this issue Mar 8, 2015 · 0 comments
Closed

URL Regex Expansion and Option #25

swainn opened this issue Mar 8, 2015 · 0 comments

Comments

@swainn
Copy link
Member

swainn commented Mar 8, 2015

  • Add "." and "_" to the default REGEX for the URL Map
  • Add an argument to the UrlMap object that allows advanced users to pass a custom REGEX pattern to match for each url parameter provided.
@swainn swainn added this to the Version 1.1 milestone Mar 12, 2015
@swainn swainn self-assigned this Mar 12, 2015
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 swainn closed this as completed Mar 13, 2015
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
Projects
None yet
Development

No branches or pull requests

1 participant