Extensions: jsonValidation json schema urls should support self-registered schemes. Fixes #67189

This commit is contained in:
Martin Aeschlimann
2019-02-22 17:32:01 +01:00
parent 85618de788
commit 6286055c48
2 changed files with 39 additions and 47 deletions

View File

@@ -3,20 +3,6 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export function startsWith(haystack: string, needle: string): boolean {
if (haystack.length < needle.length) {
return false;
}
for (let i = 0; i < needle.length; i++) {
if (haystack[i] !== needle[i]) {
return false;
}
}
return true;
}
/**
* Determines if haystack ends with needle.
*/