Skip to content

Commit

Permalink
Merge pull request #241 from Ekahau/fix/case_sensitivity_in_relativize
Browse files Browse the repository at this point in the history
Handle case-sensitivity, fixes #240
  • Loading branch information
cemerick committed Oct 10, 2013
2 parents 266ff01 + c7d8057 commit 8423c83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions support/src/cljsbuild/compiler.clj
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
path)))

(defn- relativize [parent path]
(let [path (fs/absolute-path path)
parent (fs/absolute-path parent)]
(let [path (.getCanonicalPath (fs/file path))
parent (.getCanonicalPath (fs/file parent))]
(if (.startsWith path parent)
(subs path (count parent))
path)))
Expand Down

0 comments on commit 8423c83

Please sign in to comment.