# HG changeset patch # User Matthew Wild # Date 1316889570 -3600 # Node ID 14f827efadf20554f85d65c0c8dbda91f608b666 # Parent ff14c066a643b9631565db8a582b1543d1340a72 make_squishy: Match require calls at the start of a line (thanks R D) diff -r ff14c066a643 -r 14f827efadf2 make_squishy --- a/make_squishy Sat Jan 22 18:04:56 2011 +0000 +++ b/make_squishy Sat Sep 24 19:39:30 2011 +0100 @@ -77,7 +77,7 @@ function scan_file(outfile, scanfile) for line in io.lines(scanfile) do - for _, module in line:gmatch("[^%w_]require%s*%(?([\"'])(.-)%1") do + for _, module in (" "..line):gmatch("[^%w_]require%s*%(?([\"'])(.-)%1") do if not modules[module] then local binary; modules[module] = true;