The regex in question lacks parenthesis around the word lists:
# single tags single_no_arg = /^(br|hr)$/i single = /^(img|meta|link|input|base|area|col|frame|param)$/i
On May 2, 2006, at 10:33 PM, Trevor Harmon wrote:
On May 2, 2006, at 10:18 PM, Eric O'Brien wrote:
"pudding" gives me
<pudding></pudding> but
"chocolatepudding" gives me
<chocolatepudding />
It has to do with the fact that "col" (which needs no closing tag in HTML) is a substring of the second one. However, looking at the regex in the bundle, I still don't see how this could happen.
Trevor
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate