Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Commits on Jan 15, 2013
shallker.wang Fixed issue #1, update exclusions with regex. b0f030a
@napcs Merge pull request #4 from shallker-wang/master
Fixed the exclusion will match any directory path with a '*git/'
68166e6
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() {

No commit comments for this range

Something went wrong with that request. Please try again.