Skip to content

Commit

Permalink
WEB-2115 fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Ladaria committed Nov 29, 2024
1 parent c5c47b6 commit dbd799d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ import {version as packageVersion} from './package.json';
*
* 1.2.3 => v1_2_3
* 1.2.0 => v1_2
* 1.0.0 => v1
*/
const version = 'v' + packageVersion.replace(/[0\.]+$/, '').replace(/\./g, '_');
const version = 'v' + packageVersion.replace(/(\.0)*$/, '').replace(/\./g, '_');

export default defineConfig({
plugins: [
Expand Down

0 comments on commit dbd799d

Please sign in to comment.