Skip to content
Browse files

Make regex match respect self-closing uppercase tags, change from Han…

…s-Jörg Bibiko.

git-svn-id: http://svn.textmate.org/trunk/Bundles/HTML.tmbundle@8521 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent fce950c commit 0a2be7a1c521773e47f10be6b4183b85655996cd @infininight infininight committed Nov 24, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 Commands/Insert Close Tag.plist
View
4 Commands/Insert Close Tag.plist
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
@@ -23,7 +23,7 @@ before.gsub!(/&lt;[^&gt;]+\/\s*&gt;/i, '')
# remove all self-closing tags
if ENV.has_key?('TM_HTML_EMPTY_TAGS') then
empty_tags = ENV['TM_HTML_EMPTY_TAGS']
- before.gsub!(/&lt;(#{empty_tags})\b[^&gt;]*&gt;/, '')
+ before.gsub!(/&lt;(#{empty_tags})\b[^&gt;]*&gt;/i, '')
end
# remove all comments

0 comments on commit 0a2be7a

Please sign in to comment.
Something went wrong with that request. Please try again.