SMF Development > Fixed or Bogus Bugs
[BUG] Tables BBC code does not work
[Unknown]:
Well, we have this:
--- Code: --- '/\[table\](?:\s|<br(?: \/)?>)*((?:\[tr\]\s*\[td\]).+?(?:(?:\s|<br(?: \/)?>)*\[\/td\]\[\/tr\]))(?:\s|<br(?: \/)?>)*\[\/table\](?:\s|<br(?: \/)?>)?/is' -> '<table>\\1</table>'
--- End code ---
And these two: (both exectued twice)
--- Code: --- '/((?:<table>|<\/tr>|\[\/tr\])(?:\s|<br(?: \/)?>)*(?:<tr>|\[tr\])|<\/td>|\[\/td\])(?:\s|<br(?: \/)?>)*\[td\](?:\s|<br(?: \/)?>)*(.+?)(?:\s|<br(?: \/)?>)*\[\/td\](?:\s|<br(?: \/)?>)*((?:<\/tr>|\[\/tr\])(?:\s|<br(?: \/)?>)*(?:<tr>|\[tr\]|<\/table>)|<td>|\[td\])/is' -> '\\1<td>\\2</td>\\3'
'/(<table>|<\/tr>|\[\/tr\])(?:\s|<br(?: \/)?>)*\[tr\](?:\s|<br(?: \/)?>)*(.+?)(?:\s|<br(?: \/)?>)*\[\/tr\](?:\s|<br(?: \/)?>)*(<\/table>|<tr>|\[tr\])/is' -> '\\1<tr>\\2</tr>\\3''
--- End code ---
This ensures that you don't try to screw anything up ;). I tried adding , but it... errr, didn't take.
-[Unknown]
mattsiegman:
:o holy crap those are long regexes
treo:
here is another tables related bug:
In the "Show unread posts since last visit." Section when there is a post in wich tables are used it will screw up the table in which the post is in and the tabels tags won't be converted
[Unknown]:
Umm... that page doesn't show posts...
-[Unknown]
treo:
sorry I mean that one:
http://www.simplemachines.org/community/index.php?action=recent
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version