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