fix 'needs_to_reload?' regexps

- remove stray ^ that would cause regexp to never match
- remove '_helper' suffix as it isn't required for helpers
This commit is contained in:
Artem Baguinski 2013-03-22 18:22:16 +01:00
parent bef30685e0
commit e169f88a5a

View file

@ -189,8 +189,8 @@ module Middleman
def needs_to_reload?(paths)
match_against = [
%r{^config\.rb},
%r{^lib/^[^\.](.*)\.rb$},
%r{^helpers/^[^\.](.*)_helper\.rb$}
%r{^lib/[^\.](.*)\.rb$},
%r{^helpers/[^\.](.*)\.rb$}
]
if @options[:reload_paths]