UPE // No toleration to consecutive new lines.

This commit is contained in:
ShikiSuen 2022-02-24 22:33:08 +08:00
parent 448b0bf959
commit 45338236c0
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@ extension String {
}
// Step 5: Remove duplicated newlines at the end of the file.
strProcessed.regReplace(pattern: "\\n\\n", replaceWith: "\n")
strProcessed.regReplace(pattern: "\\n+", replaceWith: "\n")
// Step 6: Commit Formatted Contents.
self = strProcessed