JS: Fix FP from char class

This commit is contained in:
Asger F
2022-06-24 12:01:36 +02:00
parent 9e4116618a
commit d92430b0e7
2 changed files with 22 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
const express = require('express');
const app = express();
app.get(/\/[a-zA-Z]+/, (req, res, next) => { // OK - regexp term is case insensitive
next();
});
app.get('/foo', (req, res) => {
});