Update Existing pattern usage

Dieser Commit ist enthalten in:
Jesse Boyd 2018-08-16 00:14:03 +10:00
Ursprung 7ed96ec358
Commit 19125bee5f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F

Datei anzeigen

@ -48,7 +48,9 @@ public class PatternCommands extends MethodCommands {
@Command( @Command(
aliases = {"#existing", "#*", "*", ".*"}, aliases = {"#existing", "#*", "*", ".*"},
desc = "Use the block that is already there") desc = "Use the block that is already there",
usage = "[properties]"
)
public Pattern existing(Extent extent, @Optional String properties) { // TODO FIXME , @Optional String properties public Pattern existing(Extent extent, @Optional String properties) { // TODO FIXME , @Optional String properties
if (properties == null) return new ExistingPattern(extent); if (properties == null) return new ExistingPattern(extent);
return new PropertyPattern(extent).addRegex(".*[" + properties + "]"); return new PropertyPattern(extent).addRegex(".*[" + properties + "]");