UPE // No toleration to consecutive new lines.

This commit is contained in:
ShikiSuen 2022-02-24 22:33:08 +08:00
parent 028aab03b8
commit 9a8c720632
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. // 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. // Step 6: Commit Formatted Contents.
self = strProcessed self = strProcessed