Skip to content

Commit

Permalink
Allow any copyright header
Browse files Browse the repository at this point in the history
  • Loading branch information
freak4pc committed May 11, 2023
1 parent 3636939 commit 3f407ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/validate-headers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ let fileLine = try NSRegularExpression(pattern: "// (\(identifier))", options:
let projectLine = try NSRegularExpression(pattern: "// (\(identifier))", options: [])

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

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

0 comments on commit 3f407ee

Please sign in to comment.