Skip to content

Commit

Permalink
Synced to 6660566
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Aug 9, 2016
1 parent dd0ec47 commit 99d6b57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "s9e/text-formatter",
"version": "0.6.1",
"version": "0.6.2",
"type": "library",
"description": "Multi-purpose text formatting and markup library. Plugins offer support for BBCodes, Markdown, emoticons, HTML, embedding media (YouTube, etc...), enhanced typography and more.",
"homepage": "https://github.com/s9e/TextFormatter/",
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/Autoimage/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Configurator extends ConfiguratorBase
{
protected $attrName = 'src';
protected $quickMatch = '://';
protected $regexp = '#https?://[-.\\w]+/[-./\\w]+\\.(?:gif|jpe?g|png)(?!\\S)#';
protected $regexp = '#\\bhttps?://[-.\\w]+/[-./\\w]+\\.(?:gif|jpe?g|png)(?!\\S)#i';
protected $tagName = 'IMG';
protected function setUp()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/BBCodes/Configurator/BBCodeMonkey.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function ($m)
{
$pos = \strpos($definition, '=');
$name = \substr($definition, 0, $pos);
$value = \substr($definition, 1 + $pos);
$value = \preg_replace('(^"(.*?)")s', '$1', \substr($definition, 1 + $pos));
$value = \preg_replace_callback(
'#(\\{(?>HASHMAP|MAP|PARSE|REGEXP)=)([A-Za-z0-9+/]+=*)#',
function ($m)
Expand Down

0 comments on commit 99d6b57

Please sign in to comment.