From 5fc94804d644be7a6832ac02b14d067eda85b4e3 Mon Sep 17 00:00:00 2001 From: aidant19 Date: Thu, 11 Jan 2024 19:37:03 -0500 Subject: [PATCH] includes ajmodel -> endsWith .ajmodel Co-authored-by: Afro --- package-scripts/modules/ajexport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-scripts/modules/ajexport.js b/package-scripts/modules/ajexport.js index d2cbbd7bf..df167579d 100644 --- a/package-scripts/modules/ajexport.js +++ b/package-scripts/modules/ajexport.js @@ -13,7 +13,7 @@ export async function script() { const modelDir = paths.ajmodelPath.concat('/'); console.log('Target paths: ', paths); const files = readdirSync(modelDir).filter((file) => - file.includes('ajmodel'), + file.endsWith('.ajmodel'), ); for (const file of files) {