mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
fix version parsing in 91b0ac5b3f
This commit is contained in:
parent
19518a6269
commit
3b61ef51b0
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ var noopFunc = function(){};
|
|||
vAPI.app = (function() {
|
||||
let version = manifest.version;
|
||||
let match = /(\d+\.\d+\.\d+)(?:\.(\d+))?/.exec(version);
|
||||
if ( match !== null ) {
|
||||
if ( match && match[2] ) {
|
||||
let v = parseInt(match[2], 10);
|
||||
version = match[1] + (v < 100 ? 'b' + v : 'rc' + (v - 100));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue