Skip to content

Commit

Permalink
Fix underline heading regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriszielinski committed Nov 30, 2018
1 parent 83dcad7 commit 6910037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Models/Headings/MarkdownUnderlineHeading.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct MarkdownUnderlineHeading {
extension MarkdownUnderlineHeading: RegexReplaceable {

//swiftlint:disable:next force_try
static let regex = try! Regex(pattern: "^([ \t]*)([^#\n]+)\n[ \t]*([=-]+)",
static let regex = try! Regex(pattern: "^([ \t]*)([^#\n]+)\n[ \t]*([=-]+)$",
options: [.anchorsMatchLines],
groupNames: RegexGroupKey.allRawValues)

Expand Down

0 comments on commit 6910037

Please sign in to comment.