Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Mar 11, 2021
1 parent bbae4a4 commit e7c47bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/change-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
]
Expand All @@ -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
}
Expand Down

0 comments on commit e7c47bc

Please sign in to comment.