(String uid)
| 342 | |
| 343 | |
| 344 | private String elideGroups(String s) { |
| 345 | // replace subsequent sequential [[__groupName__:value foo foo]] with nothing; otherwise replace it with "foo foo" |
| 346 | // we don't support nesting here |
| 347 | |
| 348 | boolean found = false; |
| 349 | Map<String, String> prev = new LinkedHashMap<>(); |
| 350 | |
| 351 | do { |
| 352 | Pattern p = Pattern.compile("\\[\\[__(.+?)__:(.+?) (.+?)\\]\\]", Pattern.DOTALL); |
| 353 | Matcher m = p.matcher(s); |
| 354 | if (m.find()) { |
no test coverage detected