Explorar o código

fix codeql error

Yuki Takei %!s(int64=3) %!d(string=hai) anos
pai
achega
a934faf0f6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
   }