change tweak comment matcher (fixes #3742)

This commit is contained in:
Ben Fry
2015-09-11 09:43:39 -04:00
parent b8ed1abcdb
commit ebdccb9876
2 changed files with 13 additions and 9 deletions

View File

@@ -627,9 +627,13 @@ public class SketchParser {
static private boolean hasTweakComment(String code) {
// https://github.com/processing/processing/issues/3742
return code.contains("/// tweak");
/*
Pattern p = Pattern.compile("\\/\\/.*tweak", Pattern.CASE_INSENSITIVE);
Matcher m = p.matcher(code);
return m.find();
*/
}