From 2a905690c0c203fcac8f6982dc1b471185ded3c9 Mon Sep 17 00:00:00 2001 From: JayaShakthi97 Date: Mon, 25 Sep 2023 15:26:44 +0530 Subject: [PATCH] Update license header pattern --- .eslintrc.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 3faf75eef05..963bc0c4845 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -72,10 +72,8 @@ const getLicenseHeaderPattern = () => { const LICENSE_HEADER_DEFAULT_PATTERN = [ "*", { - pattern: " Copyright \\(c\\) \\d{4}, WSO2 LLC. \\(https://www.wso2.com\\).", - template: ` * Copyright (c) ${ - new Date().getFullYear() - }, WSO2 LLC. (https://www.wso2.com).` + pattern: " Copyright \\(c\\) \\b(2019|202[0-3])(?:-(202[0-3]))?, WSO2 LLC. \\(https://www.wso2.com\\)\.$", + template: " * Copyright (c) {{year}}, WSO2 LLC. (https://www.wso2.com)." }, " *", " * WSO2 LLC. licenses this file to you under the Apache License,",