提交 cae4b9d2 编写于 作者: J Josh Goldberg

Allowed preceding spaces in fileActions.ts file names

上级 3fbfccad
......@@ -1414,13 +1414,12 @@ export function getWellFormedFileName(filename: string): string {
return filename;
}
// Trim whitespaces
filename = strings.trim(strings.trim(filename, ' '), '\t');
// Trim tabs
filename = strings.trim(filename, '\t');
// Remove trailing dots
// Remove trailing dots, slashes, and spaces
filename = strings.rtrim(filename, '.');
// Remove trailing slashes
filename = strings.rtrim(filename, ' ');
filename = strings.rtrim(filename, '/');
filename = strings.rtrim(filename, '\\');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册