better username extraction
This commit is contained in:
@@ -68,7 +68,10 @@ class WpUser < WpItem
|
||||
# & are not decoded with Nokogiri
|
||||
title_tag.sub!('&', '&')
|
||||
|
||||
name = title_tag[%r{([^|«]+) }, 1]
|
||||
# replace UTF chars like » with dummy character
|
||||
title_tag.sub!(/&#(\d+);/, '|')
|
||||
|
||||
name = title_tag[%r{([^|«»]+) }, 1]
|
||||
|
||||
return name.strip if name
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user