Jelajahi Sumber

fix codeql error

Yuki Takei 3 tahun lalu
induk
melakukan
a934faf0f6
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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;
   }