Skip to content

Commit 5fab778

Browse files
committed
Merge branch 'release/5.0.4'
2 parents 49bfdbf + 572719a commit 5fab778

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v5.0.4
2+
## 01/26/2021
3+
4+
1. [](#bugfix)
5+
* NextGen Editor: Fixed regexp regression preventing multiple shortcodes to be parsed in certain circumstances
6+
17
# v5.0.3
28
## 01/15/2021
39

blueprints.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Shortcode Core
22
slug: shortcode-core
33
type: plugin
4-
version: 5.0.3
4+
version: 5.0.4
55
description: "This plugin provides the core functionality for shortcode plugins"
66
icon: code
77
author:

nextgen-editor/dist/js/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nextgen-editor/dist/js/app.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nextgen-editor/src/prerender.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ window.nextgenEditor.addHook('hookMarkdowntoHTML', {
1010
.map((name) => `(\\[${name}[^\\]]*\\])`).join('|');
1111

1212
realNames.forEach((name) => {
13-
const regexp = `\\[${name}(?<attributes>(=| +).*)?\\/\\]`;
13+
const regexp = `\\[${name}(?<attributes>(=| +).+?(?=/]))?\\/\\]`;
1414

1515
output = output.replace(new RegExp(regexp, 'g'), (...matches) => {
1616
const groups = matches.pop();

0 commit comments

Comments
 (0)