Skip to content

Commit

Permalink
Improved regex readability of code regex
Browse files Browse the repository at this point in the history
  • Loading branch information
bmoliveira committed Jan 21, 2019
1 parent 6051cf0 commit ef9386e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MarkdownKit/Sources/Elements/MarkdownCode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import UIKit

open class MarkdownCode: MarkdownCommonElement {

fileprivate static let regex = "(.?|^)(\\`+)(.+?)(\\2)"
fileprivate static let regex = "(.?|^)(\\`{1,3})(.+?)(\\2)"

open var font: UIFont?
open var color: UIColor?
Expand Down

0 comments on commit ef9386e

Please sign in to comment.