Skip to content

Commit

Permalink
this took more than 3 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Dec 4, 2024
1 parent 79d45de commit c8266c3
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,34 @@ object GoldenFishTimer {
private val config get() = SkyHanniMod.feature.fishing.trophyFishing.goldenFishTimer

private val patternGroup = RepoPattern.group("fishing.goldenfish")
// TODO add regex tests

/**
* REGEX-TEST: §9You spot a §r§6Golden Fish §r§9surface from beneath the lava!
*/
private val spawnPattern by patternGroup.pattern(
"spawn",
"§9You spot a §r§6Golden Fish §r§9surface from beneath the lava!",
)

/**
* REGEX-TEST: §9The §r§6Golden Fish §r§9escapes your hook but looks weakened.
*/
private val interactPattern by patternGroup.pattern(
"interact",
"§9The §r§6Golden Fish §r§9escapes your hook but looks weakened\\.",
)

/**
* REGEX-TEST: §9The §r§6Golden Fish §r§9is weak!
*/
private val weakPattern by patternGroup.pattern(
"weak",
"§9The §r§6Golden Fish §r§9is weak!",
)

/**
* REGEX-TEST: §9The §r§6Golden Fish §r§9swims back beneath the lava...
*/
private val despawnPattern by patternGroup.pattern(
"despawn",
"§9The §r§6Golden Fish §r§9swims back beneath the lava\\.\\.\\.",
Expand Down

0 comments on commit c8266c3

Please sign in to comment.