Skip to content

Commit

Permalink
Fix #439
Browse files Browse the repository at this point in the history
  • Loading branch information
joeblau committed Feb 7, 2019
1 parent b4c0af6 commit 52c855d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/App/Extensions/String+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ internal extension String {
internal func removeDuplicateLines() -> String {
return self.components(separatedBy: "\n")
.reduce([String]()) {
if !$1.isEmpty && !$1.hasPrefix("#") && $0.contains($1) {
if !$1.isEmpty && !$1.hasPrefix("# ") && $0.contains($1) {
return $0
}
return $0 + [$1]
Expand Down

0 comments on commit 52c855d

Please sign in to comment.