summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-03-16 20:26:14 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-03-16 20:26:14 +0100
commit2e03322bb615cb8f2875691356b25d89f0f77d57 (patch)
tree76fd6535814a7f7ba8fbbbe6efd3904a346ce765 /lib
parent7842b4d2dbc2940fa19dc7da1f33980b236fb55a (diff)
Add &ndash; to known HTML characters
This was affecting the imdb plugin when htmlentities was not available, because TV series were split at en dashes, which were being converted to asterisks when our built-in UNESCAPE_TABLE was being used.
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/core/utils/utils.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb
index 1ea69df3..ec3b3c5d 100644
--- a/lib/rbot/core/utils/utils.rb
+++ b/lib/rbot/core/utils/utils.rb
@@ -33,6 +33,7 @@ rescue LoadError
'gt' => '>',
'hellip' => '…',
'nbsp' => ' ',
+ 'ndash' => '–',
'Agrave' => 'À',
'Aacute' => 'Á',
'Acirc' => 'Â',