-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I was failing the bodyParser middleware test for a while until I realized the regex was expecting a semicolon at the end of the line. Semicolons are optional in JavaScript and I didn't have one, breaking the test. Removing the semicolon at the end of the regex seems like a reasonable fix.
const bodyParserRegex = /app.use\((\s+)?bodyParser.urlencoded\({(\s+)?extended: false(\s+)?}\)(\s+)?\);/; |
Metadata
Metadata
Assignees
Labels
No labels