changeset 543:9767da72545b

fix mmake
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 08 Jun 2015 01:11:08 -0400
parents 7170a0c414d5
children c5a93767cc5c
files core/src/luan/modules/mmake.luan
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/src/luan/modules/mmake.luan	Mon Jun 01 21:48:57 2015 -0600
+++ b/core/src/luan/modules/mmake.luan	Mon Jun 08 01:11:08 2015 -0400
@@ -28,8 +28,8 @@
 	local dirs = {}
 	for _, file in ipairs(dir.children()) do
 		local name = file.name()
-		if name.match ".java$" ~= nil then
-			javas[#javas+1] = name.sub(1,-6)
+		if String.matches(name,[[.*\.java]]) then
+			javas[#javas+1] = String.sub(name,1,-6)
 		end
 		if file.is_directory() and mmake(file) then
 			dirs[#dirs+1] = name