summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/core/utils/utils.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb
index ce5cdea4..22fcee37 100644
--- a/lib/rbot/core/utils/utils.rb
+++ b/lib/rbot/core/utils/utils.rb
@@ -623,13 +623,14 @@ module ::Irc
title = txt.ircify_html_title
debug opts
if frag = opts[:uri_fragment] and not frag.empty?
- fragreg = /<a\s+[^>]*name=["']?#{frag}["']?[^>]*>/im
+ fragreg = /<a\s+(?:[^>]+\s+)?(?:name|id)=["']?#{frag}["']?[^>]*>/im
debug fragreg
debug txt
if txt.match(fragreg)
# grab the post-match
txt = $'
end
+ debug txt
end
c_opts = opts.dup
c_opts[:strip] ||= title