main
Haoming 2025-11-19 11:58:08 +08:00
parent ae5d7ccb51
commit c4e856c5eb
1 changed files with 2 additions and 4 deletions

View File

@ -36,7 +36,8 @@ class LeFormatter {
textArea.value = val
.replace(/\n,\n/g, "\n\n")
.replace(/\>,\n/g, ">\n")
.replace(/\s*,\s*$/g, "");
.replace(/\s*,\s*$/g, "")
.replace(/\.,(\s)/g, ".$1");
}
if (autoRefresh) updateInput(textArea);
@ -146,9 +147,6 @@ class LeFormatter {
// Remove empty before Colon
input = input.replace(/,\s*:(\d)/g, ":$1");
// Period instead of Comma
input = input.replaceAll(".,", ".");
input = this.#fromExpression(input);
return input;