提交 0a5223be 编写于 作者: J Johannes Rieken

try to avoid module dependencies such that this is as leafy as possible

上级 41b5c4cc
......@@ -5,7 +5,6 @@
'use strict';
import {isLinux, isWindows} from 'vs/base/common/platform';
import {endsWith} from 'vs/base/common/strings';
/**
* The forward slash path separator.
......@@ -316,7 +315,7 @@ export function isValidBasename(name: string): boolean {
return false; // check for reserved values
}
if (isWindows && endsWith(name, '.')) {
if (isWindows && name[name.length - 1] === '.') {
return false; // Windows: file cannot end with a "."
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册