Skip to content

Commit af48b4e

Browse files
authored
Merge pull request #16285 from rwjblue/more-version-fixes
[BUGFIX beta] Fix version with many special chars.
2 parents f1176f6 + 2e99d1f commit af48b4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

broccoli/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports.VERSION = (() => {
2929
let sha = info.sha || '';
3030
let suffix = process.env.BUILD_TYPE || info.branch;
3131
// * remove illegal non-alphanumeric characters from branch name.
32-
suffix = suffix && suffix.replace(/[^a-zA-Z\d\s-]/, '-');
32+
suffix = suffix && suffix.replace(/[^a-zA-Z\d\s-]/g, '-');
3333
let metadata = sha.slice(0, 8);
3434

3535
return `${packageVersion}${suffix ? '-' + suffix : ''}+${metadata}`;

0 commit comments

Comments
 (0)