Skip to content

Commit

Permalink
Fix dScript argument matching.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcernat committed Jun 28, 2013
1 parent d1541d2 commit db1fc9e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/net/aufdemrand/denizen/objects/dScript.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ public static dScript valueOf(String string) {
}
return null;
}

public static boolean matches(String string) {

Matcher m = matchesScriptPtrn.matcher(string);
if (m.matches()) {
dScript script = new dScript(m.group(1));
// Make sure it's valid.
if (script.isValid()) return true;
}
return false;
}

private ScriptContainer container;
private String prefix = "Script";
Expand Down

0 comments on commit db1fc9e

Please sign in to comment.