lib/guard/jekyll_plus/config.rb in guard-jekyll-plus-2.0.1 vs lib/guard/jekyll_plus/config.rb in guard-jekyll-plus-2.0.2
- old
+ new
@@ -89,10 +89,14 @@
def excluded?(path)
@jekyll_config['exclude'].any? { |glob| File.fnmatch?(glob, path) }
end
+ def watch_regexp
+ %r{^(?!#{destination}\/).*}
+ end
+
private
def silent?
@options[:silent] || @options['silent']
end
@@ -121,10 +125,10 @@
current = Dir.pwd
path = path.sub current, ''
if path == ''
'./'
else
- path.sub(/^\//, '')
+ path.sub(%r{^/}, '')
end
end
end
end
end