MCPcopy Create free account
hub / github.com/c0ny1/captcha-killer / parsePositionRule

Method parsePositionRule

src/main/java/entity/Rule.java:107–112  ·  view source on GitHub ↗
(String rule)

Source from the content-addressed store, hash-verified

105 }
106
107 public static int[] parsePositionRule(String rule){
108 JSONObject json = (JSONObject) JSONObject.parse(rule);
109 int start = Integer.valueOf(json.get("start").toString());
110 int end = Integer.valueOf(json.get("end").toString());
111 return new int[]{start,end};
112 }
113
114 public static String[] parseStartEndString(String rule){
115 JSONObject json = (JSONObject) JSONObject.parse(rule);

Callers 1

RuleMethod · 0.95

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected