Skip to content

Commit

Permalink
Merge branch 'release/5.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
w00fz committed Jan 26, 2021
2 parents 49bfdbf + 572719a commit 5fab778
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v5.0.4
## 01/26/2021

1. [](#bugfix)
* NextGen Editor: Fixed regexp regression preventing multiple shortcodes to be parsed in certain circumstances

# v5.0.3
## 01/15/2021

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Shortcode Core
slug: shortcode-core
type: plugin
version: 5.0.3
version: 5.0.4
description: "This plugin provides the core functionality for shortcode plugins"
icon: code
author:
Expand Down
2 changes: 1 addition & 1 deletion nextgen-editor/dist/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion nextgen-editor/dist/js/app.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion nextgen-editor/src/prerender.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ window.nextgenEditor.addHook('hookMarkdowntoHTML', {
.map((name) => `(\\[${name}[^\\]]*\\])`).join('|');

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

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

0 comments on commit 5fab778

Please sign in to comment.