aboutsummaryrefslogtreecommitdiff
path: root/watcher_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-04-03 04:36:37 +0700
committerShulhan <ms@kilabit.info>2021-04-03 04:40:28 +0700
commit158e76e2c1c6ae2d42ba141e87130f29da142560 (patch)
tree646d7024d0112d73145bd4cea9d916bba6baebb3 /watcher_test.go
parentbabb6b16261ffa6a5931223c95316487048ce4d8 (diff)
downloadciigo-158e76e2c1c6ae2d42ba141e87130f29da142560.tar.xz
all: add option to exclude certain paths using regular expression
The ConvertOptions now has the Exclude field that can contains regular expression. If the Exclude is not empty, it will be compiled and use in Convert, Generate, Watch, and Serve; to ignore specific paths being scanned.
Diffstat (limited to 'watcher_test.go')
-rw-r--r--watcher_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/watcher_test.go b/watcher_test.go
index e85e053..0bceff1 100644
--- a/watcher_test.go
+++ b/watcher_test.go
@@ -37,7 +37,7 @@ func TestWatcher(t *testing.T) {
t.Fatal(err)
}
- testWatcher, err = newWatcher(htmlg, testDir)
+ testWatcher, err = newWatcher(htmlg, testDir, "")
if err != nil {
t.Fatal(err)
}