tileserver-gl/test
Martin d'Allens e8f64e2861
chore: cleanup useless decodeURIComponent() calls (#1002)
* chore: cleanup useless decodeURIComponent() calls

Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>

* chore: try to fix CodeQL failure "Polynomial regular expression"

Fix 1:
\d\.?\d* can backtrack catastrophically
\d(\.\d*)? is safer

Fix 2:
Useless parenthesis around "enc:"

Fix 3:
The httpTester regex was misleading. It did not really check for "http".
Simplified to show its true meaning. The behaviour should not have changed.

Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>

* chore: try to optimize the regex further, to fix CodeQL failure

Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>

* chore: consistency between previous changes, docs, and serve_style.js

Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>

---------

Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>
2023-10-13 19:08:28 -04:00
..
metadata.js style: fix lint issues in code 🕺 (#626) 2022-11-08 22:56:07 -05:00
setup.js style: fix lint issues in code 🕺 (#626) 2022-11-08 22:56:07 -05:00
static.js chore: cleanup useless decodeURIComponent() calls (#1002) 2023-10-13 19:08:28 -04:00
style.js style: fix lint issues in code 🕺 (#626) 2022-11-08 22:56:07 -05:00
tiles_data.js style: fix lint issues in code 🕺 (#626) 2022-11-08 22:56:07 -05:00
tiles_rendered.js style: fix lint issues in code 🕺 (#626) 2022-11-08 22:56:07 -05:00