Skip to content

Commit 2c1d3b4

Browse files
deleonioCopilot
andauthored
Update packages/tools/kolibri-cli/src/migrate/shares/reuse.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Martin <6279703+deleonio@users.noreply.github.com>
1 parent 74386e0 commit 2c1d3b4

File tree

1 file changed

+1
-1
lines changed
  • packages/tools/kolibri-cli/src/migrate/shares

1 file changed

+1
-1
lines changed

packages/tools/kolibri-cli/src/migrate/shares/reuse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function filterFilesByExt(dir: string, ext: FileExtension | FileExtension
6767
* @returns {boolean} True if at least one file contains a "kol-" tag
6868
*/
6969
export function hasKolibriTags(dir: string): boolean {
70-
const regexes = [/\b<kol-[a-z-]+/i, /\b<Kol[A-Z][A-Za-z-]*/];
70+
const regexes = [KOLIBRI_WEB_COMPONENT_REGEX, KOLIBRI_REACT_COMPONENT_REGEX];
7171
return filterFilesByExt(dir, MARKUP_EXTENSIONS).some((file) => {
7272
const content = fs.readFileSync(file, 'utf8');
7373
return regexes.some((regex) => regex.test(content));

0 commit comments

Comments
 (0)