Dir.glob docs:
Returns the filenames found by expanding the pattern given in string,
either as an array or as parameters to the block. Note that this
pattern is not a regexp (it's closer to a shell glob)

that means Dir.glob "[0-9]*" is roughly equivalent to the regexp
%r([0-9][^/]*).  A little counterintuitive.

The fix is a simple rollback, with possibly a comment noting the
situation so it doesn't happen again.

-Kyle
_______________________________________________
Rails-core mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to