Skip to content

Commit d7b7bab

Browse files
committed
Merge branch 'release/2.4.2'
2 parents cdc8e27 + b18eef0 commit d7b7bab

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v2.4.2
2+
## 04/27/2020
3+
4+
1. [](#bugfix)
5+
* Fix image compare shortcode regex [#34](https://github.com/getgrav/grav-plugin-shortcode-ui/pull/34)
6+
17
# v2.4.1
28
## 02/14/2020
39

blueprints.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Shortcode UI
2-
version: 2.4.1
2+
slug: shortcode-ui
3+
type: plugin
4+
version: 2.4.2
35
description: "This plugin provides several UI shortcodes"
46
icon: code
57
author:

classes/shortcodes/ImageCompareShortcode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function init()
1515

1616
$content = $sc->getContent();
1717

18-
preg_match_all('/<img.*(?:alt="(.*?)").*\/>/', $content, $matches);
18+
preg_match_all('/<img.*(?:alt="(.*?)").*\/?>/', $content, $matches);
1919

2020
if (count($matches) === 2 && count($matches[0]) === 2) {
2121
return $this->twig->processTemplate(

0 commit comments

Comments
 (0)