Add Sublime Text 3
This commit is contained in:
parent
cdccbba03a
commit
9cfef766b1
1 changed files with 15 additions and 0 deletions
15
modules/SublimeText3.php
Normal file
15
modules/SublimeText3.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
class SublimeText3 extends PatchBase {
|
||||
function __construct() {
|
||||
parent::__construct('Sublime HQ', 'Sublime Text', 'https://www.sublimetext.com/3');
|
||||
$this->patch->setBranch('3');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://www.sublimetext.com/3'))
|
||||
return $this->parse('/<p class="latest">.+Build ([\d]+)<\/p>/');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue