aboutsummaryrefslogtreecommitdiff
path: root/poll.rb
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--poll.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/poll.rb b/poll.rb
index 5c88c08..dd995fb 100644
--- a/poll.rb
+++ b/poll.rb
@@ -33,7 +33,7 @@ class String
if @@htmlidcache[self]
id = @@htmlidcache[self]
else
- id = self.gsub(/[^A-Za-z0-9_:.\-]/,".")
+ id = self.gsub(/[^A-Za-z0-9_\-]/,"_")
if @@htmlidncache[id]
@@htmlidncache[id] += 1
id += @@htmlidncache[id].to_s