mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
make forward slash in output path consistent
This commit is contained in:
@@ -61,6 +61,12 @@ export class ObfuscatedCodeFileUtils {
|
||||
if (isDirectoryRawInputPath) {
|
||||
if (isDirectoryRawOutputPath) {
|
||||
const parsedNormalizedFilePath: path.ParsedPath = path.parse(normalizedFilePath);
|
||||
|
||||
// Make ending with "/" consistent
|
||||
if (!parsedNormalizedFilePath.dir.endsWith('/') && this.inputPath.endsWith('/')) {
|
||||
parsedNormalizedFilePath.dir += '/';
|
||||
}
|
||||
|
||||
const baseOutputPath: string = path.join(
|
||||
parsedNormalizedFilePath.dir.replace(this.inputPath, ''),
|
||||
parsedNormalizedFilePath.base
|
||||
|
||||
Reference in New Issue
Block a user