Skip to content
Snippets Groups Projects
Commit 28ebd407 authored by naudefj's avatar naudefj
Browse files

#104184: Allow commas and dots in [abbr] and [acronym] tags

parent bad2b3c1
Branches master
Tags 7.x-3.0
No related merge requests found
......@@ -114,8 +114,8 @@ function _bbcode_filter_process(&$body, $format = -1) {
'#\[move(?::\w+)?\](.*?)\[/move(?::\w+)?\]#si' => '<marquee>\\1</marquee>',
// Acronyms & abbreviations - show description when mouse moves over tag
'#\[acronym=([\w\s-]+)(?::\w+)?\](.*?)\[/acronym(?::\w+)?\]#si' => '<acronym title="\\1">\\2</acronym>',
'#\[abbr=([\w\s-]+)(?::\w+)?\](.*?)\[/abbr(?::\w+)?\]#si' => '<abbr title="\\1">\\2</abbr>',
'#\[acronym=([\w\s-,\.]+)(?::\w+)?\](.*?)\[/acronym(?::\w+)?\]#si' => '<acronym title="\\1">\\2</acronym>',
'#\[abbr=([\w\s-,\.]+)(?::\w+)?\](.*?)\[/abbr(?::\w+)?\]#si' => '<abbr title="\\1">\\2</abbr>',
// Quoting with or without specifying the source
'#\[quote(?::\w+)?\]#i' => '<div class="bb-quote">'.$quote_text.'<blockquote class="bb-quote-body">',
......
......@@ -83,6 +83,7 @@ Abbreviations:
[abbr=Application Programming Interface]API[/abbr]
[abbr=Content Management System]CMS[/abbr]
[abbr=World Wide Web]WWW[/abbr]
[abbr=2.54cm]1 inch[/abbr]
Acronyms:
[acronym=Structured Query Language]SQL[/acronym]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment