Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Support no extention file and directory #1

Merged
merged 1 commit into from

2 participants

@liquidz

In noir-cljs, I cannnot work with "cljs" directory bacause directory named "cljs" is filtered by watchtower.
So I fix "extention" function to check whether file has extention or not.

@ibdknox ibdknox merged commit 622452d into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 18, 2012
  1. @liquidz
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/watchtower/core.clj
View
3  src/watchtower/core.clj
@@ -103,5 +103,6 @@
(let [exts-set (set (map name exts))]
(fn [f]
(let [fname (.getName f)
- cur (subs fname (inc (.lastIndexOf fname ".")))]
+ idx (.lastIndexOf fname ".")
+ cur (if-not (neg? idx) (subs fname (inc idx)))]
(exts-set cur)))))
Something went wrong with that request. Please try again.