| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bccb5ef commit 7b3bf77
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1653,16 +1653,18 @@ public static boolean verifyLength(String rule, int len) throws UnsupportedDataT | |||
| 1653 | 1653 | ||
| 1654 | 1654 | int secondNum = Integer.parseInt(second); | |
| 1655 | 1655 | switch (Objects.requireNonNull(first)) { | |
| 1656 | - case ">": | ||
| 1657 | - return len > secondNum; | ||
| 1658 | 1656 | case ">=": | |
| 1659 | 1657 | return len >= secondNum; | |
| 1660 | - case "<": | ||
| 1661 | - return len < secondNum; | ||
| 1662 | 1658 | case "<=": | |
| 1663 | 1659 | return len <= secondNum; | |
| 1664 | - case "<>": | ||
| 1660 | + case "!=": | ||
| 1665 | 1661 | return len != secondNum; | |
| 1662 | + case ">": | ||
| 1663 | + return len > secondNum; | ||
| 1664 | + case "<": | ||
| 1665 | + return len < secondNum; | ||
| 1666 | + case "=": | ||
| 1667 | + return len == secondNum; | ||
| 1666 | 1668 | } | |
| 1667 | 1669 | ||
| 1668 | 1670 | // 出现不能识别的符号也认为规则不合法 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments