Permalink
Browse files

another fix at require_dir

  • Loading branch information...
1 parent 4f5224b commit 1cbec40a0a6c3ec7d02b477cf5f1b66f1cff327c @kikito committed May 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/require_dir.lua
View
@@ -1,5 +1,5 @@
local function toRequirePath(fsPath)
- return fsPath:gsub('%.lua',''):gsub('/','.')
+ return fsPath:gsub('%.lua$',''):gsub('/','.')
end

0 comments on commit 1cbec40

Please sign in to comment.