mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:41:34 +08:00
Fix multiline comment
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user