lib/jldrill/model/items/Field.rb in jldrill-0.5.1.7 vs lib/jldrill/model/items/Field.rb in jldrill-0.6.0.1

- old
+ new

@@ -1,5 +1,6 @@ +# encoding: utf-8 # Represents a Field in a Vocabulary # This is an abstract class. The concrete class must implement: # # fromString() -- Returns contents from a string without input processing # contents() -- Returns the contents of the field unaltered @@ -12,11 +13,11 @@ class Field QUOTE_RE = /["]/ RETURN_RE = /[\n]/ SLASH_RE = /[\/]/ - ESCAPED_COMMA_RE = Regexp.new("\\,", nil, "U") - ESCAPED_SLASH_RE = Regexp.new("\\/", nil, "U") + ESCAPED_COMMA_RE = Regexp.new("\\,", nil) + ESCAPED_SLASH_RE = Regexp.new("\\/", nil) def initialize(name) @name = name end