brunch/brunch — pull request #309 by icholy (2012-06-06 13:44:49+00:00)
Title: remove normalize when iterating array in _ignored

I wasn't thinking when I added the normalize there the first time. If you try to pass an `Array` with `RegEx`s or `Function`s it will run normalize on them which will convert them to strings. It's redundant for `Strings` too because they'll get normalized the second time through `_ignored`.

sysPath.normalize(function(){}) ==> 'function (){}'
sysPath.normalize(/foo/) ==> '\\foo\\'

so if you set

paths:
ignored: [
/some_reg_ex/,
"/some/path/",
(path)-> true
]

it would be teated as

paths:
ignored: [
"/some_reg_ex/",
"/some/path/",
"function(path){ return true; }"
]