lib/data_mapper/support/blank.rb in datamapper-0.2.0 vs lib/data_mapper/support/blank.rb in datamapper-0.2.1
- old
+ new
@@ -28,8 +28,8 @@
end
end
class String
def blank?
- empty? || self =~ /^\s*$/
+ empty? || self =~ /\A\s*\Z/
end
-end
\ No newline at end of file
+end