Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //$tagContentEndPosition = strpos($this->_text, ']', $tagStartPosition);
- //Modification starts: to revert back the code, uncomment the above line and delete this modification
- $bbCodesOptionsPattern = '#\[(?:/)?[\w\d]+?(?:=(\[([\w\d]+?)(?:=.+?)?\].+?\[/\2\]|[^\[\]])+?)?(?P<closingBracket>\])#iu';
- if(preg_match($bbCodesOptionsPattern, $this->_text, $matches, PREG_OFFSET_CAPTURE, $tagStartPosition) && isset($matches['closingBracket'][1]))
- {
- $tagContentEndPosition = $matches['closingBracket'][1];
- }
- else
- {
- $tagContentEndPosition = false;
- }
- //Modification ends
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement