MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / matchURL

Method matchURL

Utils/src/eu/the5zig/util/Utils.java:455–462  ·  view source on GitHub ↗

Returns a List with all URLs that could been matched from given input String. @param input The input String. @return A List with all URLs that could been matched from given input String.

(String input)

Source from the content-addressed store, hash-verified

453 * @return A List with all URLs that could been matched from given input String.
454 */
455 public static List<String> matchURL(String input) {
456 List<String> result = new ArrayList<String>();
457 Matcher matcher = INCREMENTAL_PATTERN.matcher(input);
458 while (matcher.find()) {
459 result.add(matcher.group());
460 }
461 return result;
462 }
463
464 /**
465 * Tries to match the message with the match string. Use * in match string will match any characters. Use ? will match a single character.

Callers 4

openURLIfFoundMethod · 0.95
chatLineClickedMethod · 0.95
chatLineClickedMethod · 0.95
chatLineClickedMethod · 0.95

Calls 1

addMethod · 0.45

Tested by

no test coverage detected