Fix multiline comment

This commit is contained in:
barsdeveloper
2023-04-09 23:46:26 +02:00
parent c58c8be0a0
commit 41165fe20e
10 changed files with 29 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
import Configuration from "./Configuration.js"
import ComputedType from "./entity/ComputedType.js"
import Configuration from "./Configuration.js"
import UnionType from "./entity/UnionType.js"
/**
@@ -316,10 +316,15 @@ export default class Utility {
static clearHTMLWhitespace(value) {
return value
.replaceAll(" ", "\u00A0") // whitespace
.replaceAll("<br>", "\n") // newlines
.replaceAll(/<br\s*\/>|<br>/, "\n") // newlines
.replaceAll(/(\<!--.*?\-->)/g, "") // html comments
}
/** @param {String} value */
static encodeHTMLWhitespace(value) {
return value.replaceAll(" ", "\u00A0")
}
/** @param {String} value */
static capitalFirstLetter(value) {
if (value.length === 0) {