Changes between Version 1 and Version 2 of Ticket #12690, comment 31
- Timestamp:
- 07/23/2014 02:10:09 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12690, comment 31
v1 v2 12 12 }}} 13 13 14 A simple workaround would be to not backtrack to try and match an empty `[]` shortcode, see [attachment:12690.diff]. Here's a little [https://cloudup.com/c 0FEcmIjupfperl script] if you'd like to compare the amount of backtracking on both variants.14 A simple workaround would be to not backtrack to try and match an empty `[]` shortcode, see [attachment:12690.diff]. Here's a little [https://cloudup.com/cUmD0HTHMgO perl script] if you'd like to compare the amount of backtracking on both variants. 15 15 16 16 That said, we should probably be looking into using the data in $shortcode_tags in that regex, or even get_shortcode_regex() entirely, that would limit the search to the actual shortcodes that are available, and it will probably break so many unit tests which rely on non-existent shortcodes such as `[code]` or `[...]`.