We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57b270f commit 575bf33Copy full SHA for 575bf33
dash/dash-renderer/src/components/error/menu/VersionInfo.react.js
@@ -7,8 +7,8 @@ const DAY_IN_MS = 86400000;
7
function compareVersions(v1, v2) {
8
// Remove any non-numeric characters from the version strings
9
// and anything after them (e.g. 1.2.3-rc.1 -> 1.2.3, 1.2.3+build.1 -> 1.2.3)
10
- v1 = v1.replace(/[^0-9.].*$/, '');
11
- v2 = v2.replace(/[^0-9.].*$/, '');
+ v1 = v1.replace(/\.?[^0-9.].*$/, '');
+ v2 = v2.replace(/\.?[^0-9.].*$/, '');
12
13
const v1Parts = v1.split('.').map(Number);
14
const v2Parts = v2.split('.').map(Number);
0 commit comments