|
@@ -148,7 +148,7 @@ export const routesFactory = (crowi): any => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// check regex
|
|
// check regex
|
|
|
- let regex;
|
|
|
|
|
|
|
+ let regex: RegExp | null = null;
|
|
|
const regexOptionValue = options.regexp || options.regex;
|
|
const regexOptionValue = options.regexp || options.regex;
|
|
|
if (regexOptionValue != null) {
|
|
if (regexOptionValue != null) {
|
|
|
// check the length to avoid ReDoS
|
|
// check the length to avoid ReDoS
|