Lack of interest bbcode key-value attributes do not support '-' in key name

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Xon

Well-known member
Despite looking like HTML-like key-value attributes, these do not actually support a '-' in the key name. The problem is this regex;
/\G\s*(\w+)=(?:(("|')(.*)\3)|([^"'\s\]]+))(?= |\])/iU

The \w+ part is what matches the key's name, and this matches [a-zA-Z0-9_]
 
Upvote 3
This suggestion has been closed. Votes are no longer accepted.
If we have used \w+ then that is certainly what we intended.

We could consider changes in the future but that doesn’t imply a bug in this case.
 
Top Bottom