Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed issue #1, update exclusions with regex.

  • Loading branch information...
commit b0f030aa2a399b8f6aa6a2720e68cc0aec0895f3 1 parent 6413d5b
shallker.wang authored
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() {
Please sign in to comment.
Something went wrong with that request. Please try again.