aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-08-20 15:14:28 +0200
committerV <vendicated@riseup.net>2023-08-20 15:14:28 +0200
commit817f0f747314ec6491a77b9d7472a42e4cf0c7da (patch)
tree8987d51a314005e421d2976bce3d96929c65ba18 /scripts
parent98a03c886202bf4f8b3b0a00d143df803d920150 (diff)
downloadVencord-817f0f747314ec6491a77b9d7472a42e4cf0c7da.tar.gz
Vencord-817f0f747314ec6491a77b9d7472a42e4cf0c7da.tar.bz2
Vencord-817f0f747314ec6491a77b9d7472a42e4cf0c7da.zip
[skip ci] fix getPluginTarget
Diffstat (limited to 'scripts')
-rw-r--r--scripts/utils.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/utils.mjs b/scripts/utils.mjs
index 46a9466..5b84c98 100644
--- a/scripts/utils.mjs
+++ b/scripts/utils.mjs
@@ -22,7 +22,7 @@
*/
export function getPluginTarget(filePath) {
const pathParts = filePath.split(/[/\\]/);
- if (/^index\.tsx?$/.test(filePath.at(-1))) pathParts.pop();
+ if (/^index\.tsx?$/.test(pathParts.at(-1))) pathParts.pop();
const identifier = pathParts.at(-1).replace(/\.tsx?$/, "");
const identiferBits = identifier.split(".");