From e7c47bcedbae524b696695f3e1bb31be61ac4b0d Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 11 Mar 2021 11:21:37 +0200 Subject: [PATCH] Comments --- build/change-version.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/change-version.js b/build/change-version.js index 3a354f8acd11..6a230910b19a 100644 --- a/build/change-version.js +++ b/build/change-version.js @@ -17,6 +17,7 @@ const VERBOSE = process.argv.includes('--verbose') const DRY_RUN = process.argv.includes('--dry') || process.argv.includes('--dry-run') const ROOT_DIR = path.join(__dirname, '..') +// These are the filetypes we only care about replacing the version const GLOB = [ '**/*.{css,html,js,json,md,scss,txt,yml}' ] @@ -40,6 +41,7 @@ async function replaceRecursively(file, oldVersion, newVersion) { new RegExp(regExpQuote(oldVersion), 'g'), regExpQuoteReplacement(newVersion) ) + // No need to move any further if the strings are identical if (originalString === newString) { return }