Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
path sanitization for vue files
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuyk committed Mar 6, 2023
1 parent d66dcdd commit 9e130da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/plugins/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ function writeWebViewPlugins(plugins) {

for (const file of files) {
const componentName = path.basename(file, '.vue');
vueFiles[componentName] = `../../../src/core/plugins/${pluginName}/webview/${componentName}.vue`;
vueFiles[componentName] = sanitizePath(
`../../../src/core/plugins/${pluginName}/webview/${componentName}.vue`,
);
}
}

Expand Down Expand Up @@ -60,7 +62,9 @@ function writeVuePlugins(plugins) {

for (const file of files) {
const componentName = path.basename(file, '.ts');
vueFiles[componentName] = `../../../src/core/plugins/${pluginName}/webview/plugins/${componentName}.ts`;
vueFiles[componentName] = sanitizePath(
`../../../src/core/plugins/${pluginName}/webview/plugins/${componentName}.ts`,
);
}
}

Expand Down

0 comments on commit 9e130da

Please sign in to comment.