Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixed the exclusion will match any directory path with a '*git/' #4

Merged
merged 1 commit into from

2 participants

@shallker-wang

No description provided.

@napcs napcs merged commit 68166e6 into napcs:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 15, 2013
  1. Fixed issue #1, update exclusions with regex.

    shallker.wang authored
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +1 −1  lib/livereload.coffee
  2. +2 −2 lib/livereload.js
View
2  lib/livereload.coffee
@@ -12,7 +12,7 @@ defaultExts = [
'php', 'php5', 'py', 'rb', 'erb'
]
-defaultExclusions = ['.git/', '.svn/', '.hg/']
+defaultExclusions = [/\.git\//, /\.svn\//, /\.hg\//]
class Server
constructor: (@config) ->
View
4 lib/livereload.js
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
(function() {
var Server, defaultExclusions, defaultExts, defaultPort, fs, http, path, url, version, ws;
@@ -18,7 +18,7 @@
defaultExts = ['html', 'css', 'js', 'png', 'gif', 'jpg', 'php', 'php5', 'py', 'rb', 'erb'];
- defaultExclusions = ['.git/', '.svn/', '.hg/'];
+ defaultExclusions = [/\.git\//, /\.svn\//, /\.hg\//];
Server = (function() {
Something went wrong with that request. Please try again.