Skip to content

Commit

Permalink
Fix leading space on version when reporting GitHub issues
Browse files Browse the repository at this point in the history
  • Loading branch information
HiveGames-OSS committed Dec 18, 2024
1 parent 82d5729 commit a6f8c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/ui/src/components/screen/mode/modeOption.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, {Component} from "react";
export function getVersionName(inputVersionName) {
// Filter the version name and extract the actual version for display
let type = inputVersionName.split("_")[0];
let version = inputVersionName.replace(type, "");
let version = inputVersionName.replace(type + "_", "").replace(type, "");
version = version.replace(/^R(.*)$/g, "1.$1").replace(/_/g, ".");

// Ensure it's in the form 1.0.0
Expand Down

0 comments on commit a6f8c9a

Please sign in to comment.