Browse Source

fix codeql error

Yuki Takei 3 years ago
parent
commit
a934faf0f6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/core/src/utils/template-checker.ts

+ 1 - 1
packages/core/src/utils/template-checker.ts

@@ -3,7 +3,7 @@
  */
 
 export function checkTemplatePath(path: string): boolean {
-  if (path.match(/.*\/_{1,2}template$/)) {
+  if (path.match(/^.*\/_{1,2}template$/)) {
     return true;
   }