Skip to content

Commit

Permalink
chore: fix split of a number
Browse files Browse the repository at this point in the history
  • Loading branch information
uncleempty committed Dec 6, 2024
1 parent 5ebb7c4 commit eb2e7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/js/tools/browser/tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ define([
// Some useful traversal algorithms are needed and they don't have polyfill in our bundles.
// The versions come with an inconsistent format and they need to be processed upfront.
return _(versions)
.map(version => version.split('-'))
.map(version => version.toString().split('-'))
.flatten()
.value()
.some(version => currentVersion.localeCompare(version, void 0, { numeric: true }) >= 0);
Expand Down

0 comments on commit eb2e7c7

Please sign in to comment.