Remove unnecessary escape usage

This commit is contained in:
Daniel García Aubert
2019-10-24 19:18:47 +02:00
parent d5218a86f6
commit 575fe8e350
11 changed files with 17 additions and 18 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ module.exports = class TileLayergroupController {
route (mapRouter) {
// REGEXP: doesn't match with `val`
const not = (val) => `(?!${val})([^\/]+?)`;
const not = (val) => `(?!${val})([^\/]+?)`; // eslint-disable-line no-useless-escape
// Sadly the path that matches 1 also matches with 2 so we need to tell to express
// that performs only the middlewares of the first path that matches