-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from youranreus/dev3.0
version 3.2.5
- Loading branch information
Showing
9 changed files
with
144 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @package G | ||
* @author 季悠然 | ||
* @version 3.2.4 | ||
* @version 3.2.5 | ||
* @link https://季悠然.space | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -296,7 +296,13 @@ public static function analyzeMeme($content) | |
//@(xx)格式表情 | ||
$result = preg_replace('#@\((.*?)\)#', '<img src="https://cdn.jsdelivr.net/gh/youranreus/[email protected]/G/IMG/bq/$1.png" class="bq">', $content); | ||
//mirage格式表情 (原神,小黄脸) | ||
$result = preg_replace('/::(.*?):(.*?)::/', '<img src="https://cdn.jsdelivr.net/gh/youranreus/[email protected]/W/bq/$1/$2.png" class="bq">', $result); | ||
$result = preg_replace('/\:\:(.*?)\:(.*?)\:\:/','<img src="https://cdn.jsdelivr.net/gh/youranreus/[email protected]/W/bq/$1/$2.png" class="bq">',$result); | ||
$result = preg_replace_callback('#\#\((.*?)\)#',function($matches) { | ||
$emotionText = substr(substr($matches[0], 0, -1), 2); | ||
$url = "<img class='bq bq-aru' src='https://cdn.jsdelivr.net/gh/youranreus/R/W/bq/aru/".urlencode($emotionText).".png'/>"; | ||
$url = preg_replace('/%/', '', $url); | ||
return $url; | ||
}, $result); | ||
return $result; | ||
} | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters