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

Method contains

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

Tries to match the message with the match string. Use in match string will match any characters. Use ? will match a single character. @param message The message that should be checked. @param find The pattern. @return true, if the Pattern matches the message.

(String message, String find)

Source from the content-addressed store, hash-verified

484 * @return {@code true}, if the Pattern matches the message.
485 */
486 public static boolean contains(String message, String find) {
487 message = message.toLowerCase(Locale.ROOT);
488 Pattern pattern = compileMatchPattern(find);
489 Matcher matcher = pattern.matcher(message);
490
491 return matcher.find();
492 }
493
494 public static Pattern compileMatchPattern(String match) {
495 // replace duplicate stars

Callers 15

substringFromMethod · 0.45
getPlatformMethod · 0.45
runMethod · 0.45
loadLocalesMethod · 0.45
loadPluginsMethod · 0.45
getDisplayNameMethod · 0.45
loadModulesMethod · 0.45
isItemActiveMethod · 0.45
registerItemMethod · 0.45
addPartyInvitationMethod · 0.45
tickMethod · 0.45
chatLineClickedMethod · 0.45

Calls 1

compileMatchPatternMethod · 0.95

Tested by

no test coverage detected