Skip to content

Commit

Permalink
Merge pull request #10 from SwiftPackageIndex/remove-copyright-years
Browse files Browse the repository at this point in the history
Remove year from all copyright notices
  • Loading branch information
finestructure authored Jan 30, 2023
2 parents fc67091 + 654b286 commit 61ef5ce
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 3 additions & 3 deletions Sources/SemanticVersion/NSRegularExpression+ext.swift
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SemanticVersion/SemanticVersion.swift
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Tests/SemanticVersionTests/SemanticVersionTests.swift
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 61ef5ce

Please sign in to comment.