Skip to content

Commit 3f407ee

Browse files
committed
Allow any copyright header
1 parent 3636939 commit 3f407ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/validate-headers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ let fileLine = try NSRegularExpression(pattern: "// (\(identifier))", options:
6969
let projectLine = try NSRegularExpression(pattern: "// (\(identifier))", options: [])
7070

7171
let createdBy = try NSRegularExpression(pattern: "// Created by .* on \\d+/\\d+/\\d+\\.", options: [])
72-
let copyrightLine = try NSRegularExpression(pattern: "// Copyright © (\\d+) Krunoslav Zaher. All rights reserved.", options: [])
72+
let copyrightLine = try NSRegularExpression(pattern: "// Copyright © (\\d+) (.*?). All rights reserved.", options: [])
7373

7474
func validateRegexMatches(regularExpression: NSRegularExpression, content: String) -> ([String], Bool) {
7575
let range = NSRange(location: 0, length: content.count)

0 commit comments

Comments
 (0)