lib/pre/unicode.rb in regextest-0.1.5 vs lib/pre/unicode.rb in regextest-0.1.6
- old
+ new
@@ -87,9 +87,14 @@
# Range of Unicode
class Regextest::Unicode
# Generate hash of properties
def self.property(class_name)
case class_name.downcase
+ # Regextest defined char classes (from underscore)
+ when "_asciiprint"
+ ([[32, 126]])
+
+ # Unicode.org defined char classes
#{ranges_source}
else
warn "Class name (#\{class_name\}) not found. Ignored."
[]
end