SublimeText: exact string match
This commit is contained in:
parent
9a0fb1e4e9
commit
bfb8dbd9ad
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ class SublimeText3 extends PatchBase {
|
|||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://www.sublimetext.com/3'))
|
||||
return $this->parse('/<p class="latest">.+Build (\d+)<\/p>/');
|
||||
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