mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Added support webp images in BBCode (#278)
* Added support webp images in BBCode * Update CHANGELOG.md
This commit is contained in:
parent
08ff1c2cf7
commit
b31a2df167
@ -6,6 +6,7 @@
|
||||
**Merged pull requests:**
|
||||
|
||||
- Release v2.1.5-2023.09 🎉
|
||||
- Added support webp images in BBCode [\#278](https://github.com/torrentpier/torrentpier-lts/pull/278) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Enhancements for text editor [\#277](https://github.com/torrentpier/torrentpier-lts/pull/277) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Added missing !defined('BB_ROOT') check [\#274](https://github.com/torrentpier/torrentpier-lts/pull/274) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Exclude padding files [\#260](https://github.com/torrentpier/torrentpier-lts/pull/260) ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky))
|
||||
|
@ -496,7 +496,7 @@ class bbcode
|
||||
function init_replacements ()
|
||||
{
|
||||
$tpl = $this->tpl;
|
||||
$img_exp = '(https?:)?//[^\s\?&;=\#\"<>]+?\.(jpg|jpeg|gif|png)([a-z0-9/?&%;][^\[\]]*)?';
|
||||
$img_exp = '(https?:)?//[^\s\?&;=\#\"<>]+?\.(jpg|jpeg|gif|png|webp)([a-z0-9/?&%;][^\[\]]*)?';
|
||||
$email_exp = '[a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+';
|
||||
|
||||
$this->preg = array(
|
||||
|
Loading…
Reference in New Issue
Block a user