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 }