From 654b28663b16ad8ad4c0157e8e4def696a3e8edc Mon Sep 17 00:00:00 2001 From: Dave Verwer Date: Mon, 30 Jan 2023 17:07:08 +0000 Subject: [PATCH] Remove year from all copyright notices. --- Package.swift | 2 +- Sources/SemanticVersion/NSRegularExpression+ext.swift | 6 +++--- Sources/SemanticVersion/SemanticVersion.swift | 2 +- Tests/LinuxMain.swift | 2 +- Tests/SemanticVersionTests/SemanticVersionTests.swift | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Package.swift b/Package.swift index 8af5dad..3434b07 100644 --- a/Package.swift +++ b/Package.swift @@ -1,6 +1,6 @@ // swift-tools-version:5.3 -// Copyright 2020-2021 Dave Verwer, Sven A. Schmidt, and other contributors. +// Copyright Dave Verwer, Sven A. Schmidt, and other contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/Sources/SemanticVersion/NSRegularExpression+ext.swift b/Sources/SemanticVersion/NSRegularExpression+ext.swift index af8e169..a7baa7a 100644 --- a/Sources/SemanticVersion/NSRegularExpression+ext.swift +++ b/Sources/SemanticVersion/NSRegularExpression+ext.swift @@ -1,4 +1,4 @@ -// Copyright 2020-2021 Dave Verwer, Sven A. Schmidt, and other contributors. +// Copyright Dave Verwer, Sven A. Schmidt, and other contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -31,11 +31,11 @@ extension NSRegularExpression { let range = NSRange(string.startIndex..., in: string) return firstMatch(in: string, options: [], range: range) != nil } - + func matchGroups(_ string: String, options: NSRegularExpression.Options = []) -> [String] { let range = NSRange(string.startIndex..., in: string) guard let match = firstMatch(in: string, options: [], range: range) else { return [] } - + // Skip over index 0 which is the range of the whole match return (1...numberOfCaptureGroups).map { if let r = Range(match.range(at: $0), in: string) { diff --git a/Sources/SemanticVersion/SemanticVersion.swift b/Sources/SemanticVersion/SemanticVersion.swift index da044e8..beb2c93 100644 --- a/Sources/SemanticVersion/SemanticVersion.swift +++ b/Sources/SemanticVersion/SemanticVersion.swift @@ -1,4 +1,4 @@ -// Copyright 2020-2021 Dave Verwer, Sven A. Schmidt, and other contributors. +// Copyright Dave Verwer, Sven A. Schmidt, and other contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/Tests/LinuxMain.swift b/Tests/LinuxMain.swift index ba976b7..9b65426 100644 --- a/Tests/LinuxMain.swift +++ b/Tests/LinuxMain.swift @@ -1,4 +1,4 @@ -// Copyright 2020-2021 Dave Verwer, Sven A. Schmidt, and other contributors. +// Copyright Dave Verwer, Sven A. Schmidt, and other contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/Tests/SemanticVersionTests/SemanticVersionTests.swift b/Tests/SemanticVersionTests/SemanticVersionTests.swift index 7fb6185..1accd26 100644 --- a/Tests/SemanticVersionTests/SemanticVersionTests.swift +++ b/Tests/SemanticVersionTests/SemanticVersionTests.swift @@ -1,4 +1,4 @@ -// Copyright 2020-2021 Dave Verwer, Sven A. Schmidt, and other contributors. +// Copyright Dave Verwer, Sven A. Schmidt, and other contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.