* Fix RWC

* Fix RWC

* Addres PR
This commit is contained in:
Yui
2016-04-07 11:17:43 -07:00
parent 3704ad74d1
commit f0a996e6fb
6 changed files with 21 additions and 22 deletions

View File

@@ -44,15 +44,6 @@ namespace ts {
return compilerOptions.traceModuleResolution && host.trace !== undefined;
}
function startsWith(str: string, prefix: string): boolean {
return str.lastIndexOf(prefix, 0) === 0;
}
function endsWith(str: string, suffix: string): boolean {
const expectedPos = str.length - suffix.length;
return str.indexOf(suffix, expectedPos) === expectedPos;
}
function hasZeroOrOneAsteriskCharacter(str: string): boolean {
let seenAsterisk = false;
for (let i = 0; i < str.length; i++) {