SublimeText: update to newest major version
This commit is contained in:
parent
cdb38e86b1
commit
c5a296f0a1
1 changed files with 3 additions and 4 deletions
|
|
@ -1,12 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
class SublimeText3 extends PatchBase {
|
class SublimeText extends PatchBase {
|
||||||
function __construct() {
|
function __construct() {
|
||||||
parent::__construct('Sublime HQ', 'Sublime Text', 'https://www.sublimetext.com/3');
|
parent::__construct('Sublime HQ', 'Sublime Text', 'https://www.sublimetext.com/download');
|
||||||
$this->patch->setBranch('3');
|
|
||||||
}
|
}
|
||||||
function check() : bool {
|
function check() : bool {
|
||||||
if ($this->fetch('https://www.sublimetext.com/3'))
|
if ($this->fetch('https://www.sublimetext.com/download'))
|
||||||
return $this->parse('/<p class="latest"><i>Version:<\/i> Build (\d+)<\/p>/');
|
return $this->parse('/<p class="latest"><i>Version:<\/i> Build (\d+)<\/p>/');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue