Wasn't sure if this was a deliberate decision but in parsing tags containing underscores aren't matched.
eg: [testtag] works but [test_tag] does not.
Both the regular parser here:
https://github.com/thunderer/Shortcode/blob/master/src/Parser/RegularParser.php#L81
and the Wordpress parser here:
https://github.com/thunderer/Shortcode/blob/master/src/Parser/WordpressParser.php#L27
use a slightly different match syntax but neither contain the _ character.
Reason I ask is because I'm trying to use this library to make a content importer from Wordpress and Wordpress does seem to parse them correctly.
Wasn't sure if this was a deliberate decision but in parsing tags containing underscores aren't matched.
eg:
[testtag]works but[test_tag]does not.Both the regular parser here:
https://github.com/thunderer/Shortcode/blob/master/src/Parser/RegularParser.php#L81
and the Wordpress parser here:
https://github.com/thunderer/Shortcode/blob/master/src/Parser/WordpressParser.php#L27
use a slightly different match syntax but neither contain the
_character.Reason I ask is because I'm trying to use this library to make a content importer from Wordpress and Wordpress does seem to parse them correctly.