Skip to content

Commit b7c2d7c

Browse files
committed
fixed start/end tag regex matcher for video tags
1 parent 27d31a0 commit b7c2d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wordpress-shortcodes/src/main/java/org/wordpress/aztec/plugins/shortcodes/VideoShortcodePlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class VideoShortcodePlugin : IHtmlPreprocessor, IHtmlPostprocessor {
2828

2929
return StringBuilder(source)
3030
.replace(Regex("<$TAG([^>]*(?<! )) */>"), { it -> fromHTMLToShortcode(it) })
31-
.replace(Regex("<$TAG([^>]*(?<! )) */>"), { it -> fromHTMLToShortcode(it) })
31+
.replace(Regex("<$TAG([^>]*(?<! )) *></$TAG>"), { it -> fromHTMLToShortcode(it) })
3232
}
3333

3434
/**

0 commit comments

Comments
 (0)