allow a '!' in the filter

git-svn-id: file:///home/svn/framework3/trunk@13209 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Jonathan Cran 2011-07-18 20:17:28 +00:00
parent 764bb36f44
commit 8f82a29638
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ private
def filter_input(string)
return "" unless string
if !(string =~ /^[\w\s\[\]\{\}\/\\\.\-\"\(\):]*$/)
if !(string =~ /^[\w\s\[\]\{\}\/\\\.\-\"\(\):!]*$/)
raise "WARNING! Invalid character in: #{string}"
end