1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-02 09:09:38 +02:00

mind rc when deriving an integer from version string

This commit is contained in:
Raymond Hill 2018-03-30 09:58:30 -04:00
parent ca0f3a2331
commit 0451758163
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -116,7 +116,7 @@ var onVersionReady = function(lastVersion) {
// see ALL network requests.
// Remove when everybody is beyond 1.15.19b8.
if ( vAPI.firefox === undefined ) {
var match = /^(\d+)\.(\d+)\.(\d+)(?:\D(\d+))?/.exec(lastVersion);
var match = /^(\d+)\.(\d+)\.(\d+)(?:\D+(\d+))?/.exec(lastVersion);
if ( match !== null ) {
var v1 =
parseInt(match[1], 10) * 1000 * 1000 * 1000 +