prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  schema does not allow digits in app ids
  Apparently app ids like ``twofactor_u2f`` are not allowed by the info.xml schema. Could we change that regex to allow digits too or are there any strong arguments against that?
  
  ref https://github.com/nextcloud/appstore/blob/e4567ce707b332ca14eb35e322bff5ec4397191b/nextcloudappstore/core/api/v1/release/info.xsd#L245-L250
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `nextcloudappstore/core/api/v1/urls.py`
  Content:
  ```
  1 from django.conf.urls import url
  2 from django.views.decorators.http import etag
  3 from nextcloudappstore.core.api.v1.views import AppView, AppReleaseView, \
  4     CategoryView, SessionObtainAuthToken, RegenerateAuthToken, AppRatingView, \
  5     AppRegisterView
  6 from nextcloudappstore.core.caching import app_ratings_etag, categories_etag, \
  7     apps_etag
  8 from nextcloudappstore.core.versioning import SEMVER_REGEX
  9 
  10 urlpatterns = [
  11     url(r'^platform/(?P<version>\d+\.\d+\.\d+)/apps\.json$',
  12         etag(apps_etag)(AppView.as_view()), name='app'),
  13     url(r'^apps/releases/?$', AppReleaseView.as_view(),
  14         name='app-release-create'),
  15     url(r'^apps/?$', AppRegisterView.as_view(), name='app-register'),
  16     url(r'^apps/(?P<pk>[a-z_]+)/?$', AppView.as_view(), name='app-delete'),
  17     url(r'^ratings.json$',
  18         etag(app_ratings_etag)(AppRatingView.as_view()),
  19         name='app-ratings'),
  20     url(r'^apps/(?P<app>[a-z_]+)/releases/(?:(?P<nightly>nightly)/)?'
  21         r'(?P<version>' + SEMVER_REGEX + ')/?$',
  22         AppReleaseView.as_view(), name='app-release-delete'),
  23     url(r'^token/?$', SessionObtainAuthToken.as_view(), name='user-token'),
  24     url(r'^token/new/?$', RegenerateAuthToken.as_view(),
  25         name='user-token-new'),
  26     url(r'^categories.json$',
  27         etag(categories_etag)(CategoryView.as_view()), name='category'),
  28 ]
  29
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/nextcloudappstore/core/api/v1/urls.py b/nextcloudappstore/core/api/v1/urls.py
  --- a/nextcloudappstore/core/api/v1/urls.py
  +++ b/nextcloudappstore/core/api/v1/urls.py
  @@ -13,7 +13,7 @@
       url(r'^apps/releases/?$', AppReleaseView.as_view(),
           name='app-release-create'),
       url(r'^apps/?$', AppRegisterView.as_view(), name='app-register'),
  -    url(r'^apps/(?P<pk>[a-z_]+)/?$', AppView.as_view(), name='app-delete'),
  +    url(r'^apps/(?P<pk>[a-z0-9_]+)/?$', AppView.as_view(), name='app-delete'),
       url(r'^ratings.json$',
           etag(app_ratings_etag)(AppRatingView.as_view()),
           name='app-ratings'),
  
verification_info: {"golden_diff": "diff --git a/nextcloudappstore/core/api/v1/urls.py b/nextcloudappstore/core/api/v1/urls.py\n--- a/nextcloudappstore/core/api/v1/urls.py\n+++ b/nextcloudappstore/core/api/v1/urls.py\n@@ -13,7 +13,7 @@\n     url(r'^apps/releases/?$', AppReleaseView.as_view(),\n         name='app-release-create'),\n     url(r'^apps/?$', AppRegisterView.as_view(), name='app-register'),\n-    url(r'^apps/(?P<pk>[a-z_]+)/?$', AppView.as_view(), name='app-delete'),\n+    url(r'^apps/(?P<pk>[a-z0-9_]+)/?$', AppView.as_view(), name='app-delete'),\n     url(r'^ratings.json$',\n         etag(app_ratings_etag)(AppRatingView.as_view()),\n         name='app-ratings'),\n", "issue": "schema does not allow digits in app ids\nApparently app ids like ``twofactor_u2f`` are not allowed by the info.xml schema. Could we change that regex to allow digits too or are there any strong arguments against that?\r\n\r\nref https://github.com/nextcloud/appstore/blob/e4567ce707b332ca14eb35e322bff5ec4397191b/nextcloudappstore/core/api/v1/release/info.xsd#L245-L250\n", "before_files": [{"content": "from django.conf.urls import url\nfrom django.views.decorators.http import etag\nfrom nextcloudappstore.core.api.v1.views import AppView, AppReleaseView, \\\n    CategoryView, SessionObtainAuthToken, RegenerateAuthToken, AppRatingView, \\\n    AppRegisterView\nfrom nextcloudappstore.core.caching import app_ratings_etag, categories_etag, \\\n    apps_etag\nfrom nextcloudappstore.core.versioning import SEMVER_REGEX\n\nurlpatterns = [\n    url(r'^platform/(?P<version>\\d+\\.\\d+\\.\\d+)/apps\\.json$',\n        etag(apps_etag)(AppView.as_view()), name='app'),\n    url(r'^apps/releases/?$', AppReleaseView.as_view(),\n        name='app-release-create'),\n    url(r'^apps/?$', AppRegisterView.as_view(), name='app-register'),\n    url(r'^apps/(?P<pk>[a-z_]+)/?$', AppView.as_view(), name='app-delete'),\n    url(r'^ratings.json$',\n        etag(app_ratings_etag)(AppRatingView.as_view()),\n        name='app-ratings'),\n    url(r'^apps/(?P<app>[a-z_]+)/releases/(?:(?P<nightly>nightly)/)?'\n        r'(?P<version>' + SEMVER_REGEX + ')/?$',\n        AppReleaseView.as_view(), name='app-release-delete'),\n    url(r'^token/?$', SessionObtainAuthToken.as_view(), name='user-token'),\n    url(r'^token/new/?$', RegenerateAuthToken.as_view(),\n        name='user-token-new'),\n    url(r'^categories.json$',\n        etag(categories_etag)(CategoryView.as_view()), name='category'),\n]\n", "path": "nextcloudappstore/core/api/v1/urls.py"}], "after_files": [{"content": "from django.conf.urls import url\nfrom django.views.decorators.http import etag\nfrom nextcloudappstore.core.api.v1.views import AppView, AppReleaseView, \\\n    CategoryView, SessionObtainAuthToken, RegenerateAuthToken, AppRatingView, \\\n    AppRegisterView\nfrom nextcloudappstore.core.caching import app_ratings_etag, categories_etag, \\\n    apps_etag\nfrom nextcloudappstore.core.versioning import SEMVER_REGEX\n\nurlpatterns = [\n    url(r'^platform/(?P<version>\\d+\\.\\d+\\.\\d+)/apps\\.json$',\n        etag(apps_etag)(AppView.as_view()), name='app'),\n    url(r'^apps/releases/?$', AppReleaseView.as_view(),\n        name='app-release-create'),\n    url(r'^apps/?$', AppRegisterView.as_view(), name='app-register'),\n    url(r'^apps/(?P<pk>[a-z0-9_]+)/?$', AppView.as_view(), name='app-delete'),\n    url(r'^ratings.json$',\n        etag(app_ratings_etag)(AppRatingView.as_view()),\n        name='app-ratings'),\n    url(r'^apps/(?P<app>[a-z_]+)/releases/(?:(?P<nightly>nightly)/)?'\n        r'(?P<version>' + SEMVER_REGEX + ')/?$',\n        AppReleaseView.as_view(), name='app-release-delete'),\n    url(r'^token/?$', SessionObtainAuthToken.as_view(), name='user-token'),\n    url(r'^token/new/?$', RegenerateAuthToken.as_view(),\n        name='user-token-new'),\n    url(r'^categories.json$',\n        etag(categories_etag)(CategoryView.as_view()), name='category'),\n]\n", "path": "nextcloudappstore/core/api/v1/urls.py"}]}