Lowercase expressions are not working for review apps routing

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

If I specify \L for public string it is not woking:

Steps to reproduce

Create .gitlab/route-map.yml:

# Indices
- source: /content\/(.+?)_index\.(md|html)/ 
  public: '\L\1'

# Pages
- source: /content\/(.+?)\.(md|html)/ 
  public: '\L\1/'

Example Project

https://gitlab.com/kvaps/docs.example.org/

What is the current bug behavior?

Gitlab just ignores these routes

What is the expected correct behavior?

Gitlab should lowercase preview-links

Relevant logs and/or screenshots

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

Expand for output related to GitLab environment info

System information System: Ubuntu 16.04 Current User: git Using RVM: no Ruby Version: 2.6.3p62 Gem Version: 2.7.9 Bundler Version:1.17.3 Rake Version: 12.3.3 Redis Version: 3.2.12 Git Version: 2.22.2 Sidekiq Version:5.2.7 Go Version: unknown

GitLab information Version: 12.5.4 Revision: 63af04cacf5 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 10.9 URL: https://gitlab.wedos.org HTTP Clone URL: https://gitlab.wedos.org/some-group/some-project.git SSH Clone URL: git@gitlab.wedos.org:some-group/some-project.git Using LDAP: yes Using Omniauth: yes Omniauth Providers: github

GitLab Shell Version: 10.2.0 Repository storage paths:

  • default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git

Results of GitLab application Check

Expand for output related to the GitLab application check

Checking GitLab subtasks ...

Checking GitLab Shell ...

GitLab Shell: ... GitLab Shell version >= 10.2.0 ? ... OK (10.2.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Gitaly ...

Gitaly: ... default ... OK

Checking Gitaly ... Finished

Checking Sidekiq ...

Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking Incoming Email ...

Incoming Email: ... Reply by email is disabled in config/gitlab.yml

Checking Incoming Email ... Finished

Checking LDAP ...

LDAP: ... Server: ldapmain not verifying SSL hostname of LDAPS server 'freeipa.wedos.org:389' LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results) User output sanitized. Found 36 users of 100 limit.

Checking LDAP ... Finished

Checking GitLab App ...

Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 37/2 ... yes 22/8 ... yes 7/10 ... yes 7/14 ... yes 37/15 ... yes 37/16 ... yes 50/17 ... yes 22/18 ... yes 37/21 ... yes 37/23 ... yes 7/28 ... yes 2/29 ... yes 2/30 ... yes 34/31 ... yes 37/32 ... yes 22/33 ... yes 6/38 ... yes 22/39 ... yes 22/41 ... yes 52/47 ... yes 2/51 ... yes 22/57 ... yes 22/58 ... yes 22/59 ... yes 2/60 ... yes 52/61 ... yes 22/62 ... yes 22/63 ... yes 22/65 ... yes 34/66 ... yes 7/67 ... yes 22/68 ... yes 22/69 ... yes 37/70 ... yes 34/71 ... yes 7/72 ... yes 6/73 ... yes 7/74 ... yes 6/76 ... yes 7/77 ... yes 4/79 ... yes 32/80 ... yes 22/81 ... yes 34/82 ... yes 22/83 ... yes 37/84 ... yes 52/85 ... yes 26/95 ... yes 33/97 ... yes 52/98 ... yes 52/99 ... yes 37/100 ... yes 22/108 ... yes 52/109 ... yes 26/110 ... yes 34/111 ... yes 2/112 ... yes 2/113 ... yes 22/114 ... yes 34/115 ... yes 19/116 ... yes 34/117 ... yes 34/118 ... yes 37/119 ... yes 6/120 ... yes 22/121 ... yes 34/122 ... yes 2/125 ... yes 26/126 ... yes 22/127 ... yes 2/128 ... yes 33/130 ... yes 46/131 ... yes 38/133 ... yes 38/134 ... yes 38/135 ... yes 31/136 ... yes 7/138 ... yes 22/139 ... yes 33/140 ... yes 22/141 ... yes 22/142 ... yes 46/143 ... yes 63/144 ... yes 34/146 ... yes 33/147 ... yes 52/148 ... yes 22/149 ... yes 22/150 ... yes 2/152 ... yes 2/153 ... yes 2/156 ... yes 6/157 ... yes 22/158 ... yes 6/160 ... yes 2/161 ... yes 31/163 ... yes 7/164 ... yes 6/165 ... yes 31/166 ... yes 7/167 ... yes 7/168 ... yes 31/169 ... yes 7/170 ... yes 26/171 ... yes 6/172 ... yes 2/173 ... yes 31/174 ... yes 37/175 ... yes 8/176 ... yes 37/178 ... yes 37/179 ... yes 37/180 ... yes 2/181 ... yes 22/182 ... yes 52/183 ... yes 37/184 ... yes 37/185 ... yes 34/186 ... yes 22/187 ... yes 22/188 ... yes 52/189 ... yes 7/191 ... yes 32/192 ... yes 6/193 ... yes 7/195 ... yes 22/196 ... yes 22/197 ... yes 45/200 ... yes 53/201 ... yes 46/202 ... yes 55/203 ... yes 55/204 ... yes 33/205 ... yes 52/206 ... yes 55/207 ... yes 55/208 ... yes 55/209 ... yes 54/210 ... yes 59/211 ... yes 17/212 ... yes 59/214 ... yes 59/215 ... yes 59/216 ... yes 54/217 ... yes 61/218 ... yes 54/219 ... yes 47/220 ... yes 49/221 ... yes 50/222 ... yes 6/223 ... yes 61/224 ... yes 47/225 ... yes 6/227 ... yes 63/228 ... yes 66/230 ... yes 66/231 ... yes 66/232 ... yes 67/237 ... yes 67/238 ... yes 67/239 ... yes 63/242 ... yes 46/243 ... yes 34/244 ... yes 22/245 ... yes 22/246 ... yes 46/248 ... yes 48/249 ... yes 48/250 ... yes 50/251 ... yes 66/252 ... yes 56/253 ... yes 2/254 ... yes 61/255 ... yes 45/256 ... yes 2/257 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.3) Git version >= 2.22.0 ? ... yes (2.22.2) Git user has default SSH configuration? ... yes Active users: ... 30 Is authorized keys file accessible? ... yes

Checking GitLab App ... Finished

Checking GitLab subtasks ... Finished

Possible fixes

Edited by 🤖 GitLab Bot 🤖