Skip to content

Commit 2aeeb99

Browse files
[NFC] improve regex's documentation style
1 parent a8ac0b2 commit 2aeeb99

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/PackageLoading/ToolsVersionLoader.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ public class ToolsVersionLoader: ToolsVersionLoaderProtocol {
174174
return (versionSpecifier, splitted.count == 1 ? [] : Array(splitted[1]))
175175
}
176176

177-
/// The regex to match swift tools version specification:
178-
/// * It should start with `//` followed by any amount of _horizontal_ whitespace characters.
179-
/// * Following that it should contain the case insensitive string `swift-tools-version:`.
180-
/// * The text between the above string and `;` or string end becomes the tools version specifier.
177+
/// The regex to match swift tools version specification
178+
/// - It should start with `//` followed by any amount of _horizontal_ whitespace characters.
179+
/// - Following that it should contain the case insensitive string `swift-tools-version:`.
180+
/// - The text between the above string and `;` or string end becomes the tools version specifier.
181181
static let regex = try! NSRegularExpression(
182182
pattern: "^//\\h*?swift-tools-version:(.*?)(?:;.*|$)",
183183
options: [.caseInsensitive])

0 commit comments

Comments
 (0)