Skip to content

extensionUtils.js: add version comparer

Rastersoft requested to merge rastersoft/gnome-shell:add_version_at_least into master

Sometimes it is needed to know if the current version of Gnome Shell is equal or greater than a specific one to decide whether one path of code or another must be used. The old versionCheck() function can be used, but sometimes a more generic comparison is needed for this.

This MR proposes a function to do that: it receives two strings with versions, and returns whether one is, or not, smaller than the other.

Merge request reports