[html] script end tag is not correctly indented. Fixes #16650

This commit is contained in:
Martin Aeschlimann
2016-12-08 12:29:37 +01:00
parent 74dd83c541
commit b38a82cca7
4 changed files with 54 additions and 10 deletions

View File

@@ -41,6 +41,22 @@ export function startsWith(haystack: string, needle: string): boolean {
return true;
}
export function repeat(value: string, count: number) {
var s = '';
while (count > 0) {
if ((count & 1) === 1) {
s += value;
}
value += value;
count = count >>> 1;
}
return s;
}
export function isWhitespaceOnly(str: string) {
return /^\s*$/.test(str);
}
const CR = '\r'.charCodeAt(0);
const NL = '\n'.charCodeAt(0);