Skip to content

Commit

Permalink
fix(nms): allow todate in the copyright
Browse files Browse the repository at this point in the history
Signed-off-by: Fritz Lehnert <13189449+Neudrino@users.noreply.github.com>
  • Loading branch information
Neudrino committed May 13, 2022
1 parent 5f82147 commit 4ee747d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nms/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

// enforces copyright header to be present in every file
// eslint-disable-next-line max-len
const openSourcePattern = /\*\n \* Copyright 2020 The Magma Authors\.\n \*\n \* This source code is licensed under the BSD-style license found in the\n \* LICENSE file in the root directory of this source tree\.\n \*\n \* Unless required by applicable law or agreed to in writing, software\n \* distributed under the License is distributed on an "AS IS" BASIS,\n \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.\n \* See the License for the specific language governing permissions and\n \* limitations under the License\.\n \*\n/;
const openSourcePattern = /\*\n \* Copyright \d{4} The Magma Authors\.\n \*\n \* This source code is licensed under the BSD-style license found in the\n \* LICENSE file in the root directory of this source tree\.\n \*\n \* Unless required by applicable law or agreed to in writing, software\n \* distributed under the License is distributed on an "AS IS" BASIS,\n \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.\n \* See the License for the specific language governing permissions and\n \* limitations under the License\.\n \*\n/;
// eslint-disable-next-line max-len
const newOpenSourcePattern = /Copyright 2020 The Magma Authors\./;
const newOpenSourcePattern = /Copyright \d{4} The Magma Authors\./;
const combinedOpenSourcePattern = new RegExp(
'(' + newOpenSourcePattern.source + ')|(' + openSourcePattern.source + ')',
);
Expand Down

0 comments on commit 4ee747d

Please sign in to comment.