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