Ver Fonte

add type

Yuki Takei há 1 ano atrás
pai
commit
983b295405

+ 1 - 1
packages/remark-attachment-refs/src/server/routes/refs.ts

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