Skip to content

Commit ca0e47f

Browse files
committed
fix description RegEx
1 parent ad97452 commit ca0e47f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-play.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function parseApplication($packageName, $lang='en_US', $loc='US') {
155155
}
156156

157157
$values["summary"] = strip_tags($this->getRegVal('/property="og:description" content="(?<content>[^\"]+)/i'));
158-
$values["description"] = $this->getRegVal('/itemprop="description"[^\>]*><div class="bARER">(?<content>.*?)<\/div><div class=/i');
158+
$values["description"] = $this->getRegVal('/itemprop="description"[^\>]*><div class="bARER"[^\>]*>(?<content>.*?)<\/div><div class=/i');
159159
if ( strtolower(substr($lang,0,2)) != 'en' ) { // Google sometimes keeps the EN description additionally, so we need to filter it out **TODO:** check if this still applies (2022-05-27)
160160
if ($this->debug) echo "Original Description:\n" . $values["description"] . "\n\n";
161161
$values["description"] = preg_replace('!.*?<div jsname="Igi1ac" style="display:none;">(.+)!ims', '$1', $values["description"]);

0 commit comments

Comments
 (0)