1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

实现快捷键循环切换 Windows / Unix 风格

This commit is contained in:
2024-12-14 22:12:58 +08:00
parent 6fce88f88a
commit 2a1cf5488d
7 changed files with 160 additions and 12 deletions

View File

@@ -1,3 +1,4 @@
import { EOL } from "../../types/EOLType";
import { SupportPathFormat } from "./types/SupportPathFormatType";
/** / */
@@ -7,7 +8,7 @@ const RIGHT_SLASH = '\\';
/** \\ */
const DOUBLE_RIGHT_SLASH = '\\\\';
export function pathConversion(targetPathType: SupportPathFormat, input: string): string {
export function pathConversion(targetPathType: SupportPathFormat, input: string, eol: EOL): string {
let resultPath;
let isSeperator = false;