From e6216c13fd510e31e70e6f409936f1a656db1f33 Mon Sep 17 00:00:00 2001 From: noppoman Date: Tue, 16 May 2017 22:07:21 +0900 Subject: [PATCH] add options labels to build with linux --- Sources/Link.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Link.swift b/Sources/Link.swift index 576780e..b03d9f9 100644 --- a/Sources/Link.swift +++ b/Sources/Link.swift @@ -62,10 +62,10 @@ public struct Link { public var templated: Bool { struct Templated { // swiftlint:disable:next force_try - static let expression = try! NSRegularExpression(pattern: "\\{.+\\}") + static let expression = try! NSRegularExpression(pattern: "\\{.+\\}", options: []) } let range = NSRange(location: 0, length: href.characters.count) - return Templated.expression.numberOfMatches(in: href, range: range) > 0 + return Templated.expression.numberOfMatches(in: href, options: [], range: range) > 0 } // Optional attributes