Skip to content

Commit

Permalink
fix regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
funny-falcon committed Mar 4, 2012
1 parent 17443af commit 1d789f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ar_pg_array/schema.rb
Expand Up @@ -99,7 +99,7 @@ def self.string_to_num_array(string)
end

SARRAY_QUOTED = /^"((?:\\.|[^\\])*)"$/m
SARRAY_PARTIAL = /^".*(\\"|[^"])$/m
SARRAY_PARTIAL = /^"((?:\\.|[^\\])*[^"])?$/m
def self.string_to_text_array(value)
return value unless value.is_a? String
return nil if value.empty?
Expand Down

0 comments on commit 1d789f8

Please sign in to comment.