This commit is contained in:
Jesse Boyd 2016-12-15 18:48:35 +11:00
parent 30700559db
commit 812816e4e4
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -264,7 +264,7 @@ public class DefaultMaskParser extends FaweParser<Mask> {
int requiredMin = 1; int requiredMin = 1;
int requiredMax = 8; int requiredMax = 8;
if (split.length == 2) { if (split.length == 2) {
String[] split2 = split[1].split(","); String[] split2 = split[1].split(":");
requiredMin = (int) Math.abs(Expression.compile(split2[0]).evaluate()); requiredMin = (int) Math.abs(Expression.compile(split2[0]).evaluate());
if (split2.length == 2) { if (split2.length == 2) {
requiredMax = (int) Math.abs(Expression.compile(split2[1]).evaluate()); requiredMax = (int) Math.abs(Expression.compile(split2[1]).evaluate());