shithub: mc

Download patch

ref: 7e54db408cbfd206f16775070aef8fb0115587f7
parent: e761ce9ef2f89c9f87a4be72b88b837109630c2b
author: Ori Bernstein <[email protected]>
date: Tue Jan 9 16:31:35 EST 2018

The fastest regex is the one we don't run.

--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -525,6 +525,10 @@
 
 	l = [][:]
 	for ln : bio.byline(f)
+		match std.strfind(ln, "use")
+		| `std.None:	continue
+		| `std.Some _:	/* ok */
+		;;
 		match regex.exec(usepat, ln)
 		| `std.None:
 		| `std.Some uses: