From 85543db60fe31f32217667240333a31c70351976 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Wed, 12 May 2010 15:41:56 +0200 Subject: regex conformity --- poll.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'poll.rb') diff --git a/poll.rb b/poll.rb index 95e7e29..760e2c7 100644 --- a/poll.rb +++ b/poll.rb @@ -26,7 +26,7 @@ require "timepollhead" $KCODE = "u" class String def to_htmlID - CGI.escapeHTML(self.gsub(/[^A-Z^a-z^0-9^\-^_^:^\.]/,".")) + CGI.escapeHTML(self.gsub(/[^A-Za-z0-9_:.\-]/,".")) end end class Poll -- cgit v1.2.3