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:
parent
bef30685e0
commit
e169f88a5a
|
@ -189,8 +189,8 @@ module Middleman
|
||||||
def needs_to_reload?(paths)
|
def needs_to_reload?(paths)
|
||||||
match_against = [
|
match_against = [
|
||||||
%r{^config\.rb},
|
%r{^config\.rb},
|
||||||
%r{^lib/^[^\.](.*)\.rb$},
|
%r{^lib/[^\.](.*)\.rb$},
|
||||||
%r{^helpers/^[^\.](.*)_helper\.rb$}
|
%r{^helpers/[^\.](.*)\.rb$}
|
||||||
]
|
]
|
||||||
|
|
||||||
if @options[:reload_paths]
|
if @options[:reload_paths]
|
||||||
|
|
Loading…
Reference in a new issue