Pin regexes to the start of the matched strings.

This commit is contained in:
Cliff Dyer
2018-02-21 16:55:07 -05:00
committed by GitHub
parent 79acf36881
commit 34e45b2af0

View File

@@ -129,7 +129,7 @@ class::
# The regex to provide to django's urls.url.
# Optional; Defaults to r''.
PluginURLs.REGEX: r'api/my_app/',
PluginURLs.REGEX: r'^api/my_app/',
# The python path (relative to this app) to the URLs module to be plugged into the project.
# Optional; Defaults to u'urls'.
@@ -197,7 +197,7 @@ OR use string constants when they cannot import from djangoapps.plugins::
u'url_config': {
u'lms.djangoapp': {
u'namespace': u'my_app',
u'regex': u'api/my_app/',
u'regex': u'^api/my_app/',
u'relative_path': u'api.urls',
}
},