Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

fix issue 3549: Broken link on webui #5154

Merged
merged 5 commits into from
Oct 12, 2022
Merged

Conversation

Lijiaoa
Copy link
Contributor

@Lijiaoa Lijiaoa commented Oct 9, 2022

Description

fix issue #3549

How to test

test it with package

this.setState({ version: res.data });
let formatVersion = res.data;
// 2.0 will get 2.0.0 by node, so delete .0 to get real version
if (formatVersion.endsWith('.0')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if 2.0.11?

Count . in version and split on last .. Or use regex.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why? 2.0.11 is not end with '.0'. endsWith is enough to judge it, i think.

@Lijiaoa Lijiaoa closed this Oct 10, 2022
@Lijiaoa Lijiaoa reopened this Oct 10, 2022
@Louis-J Louis-J merged commit 87677df into microsoft:master Oct 12, 2022
@Lijiaoa Lijiaoa mentioned this pull request Oct 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants