Skip to content

Commit

Permalink
Simpler regexp also works in jruby.
Browse files Browse the repository at this point in the history
  • Loading branch information
threedaymonk committed Aug 14, 2009
1 parent 8f19f72 commit e7f336b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/htmlentities.rb
Expand Up @@ -143,7 +143,7 @@ def extended_entity_regexp
if encoding_aware?
regexp = '[^\u{20}-\u{7E}]'
else
regexp = '[\x00-\x1f]|[\xc0-\xfd][\x80-\xbf]+'
regexp = '[^\x20-\x7E]'
end
regexp += "|'" if @flavor == 'html4'
Regexp.new(regexp)
Expand Down

0 comments on commit e7f336b

Please sign in to comment.