Skip to content

Commit 977a1a6

Browse files
committed
fix stripping invisible parts of locked target text labels
1 parent 0720202 commit 977a1a6

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

  • implement/applications/eve-online/eve-online-mining-bot

implement/applications/eve-online/eve-online-mining-bot/Bot.elm

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{- EVE Online mining bot version 2025-11-21
1+
{- EVE Online mining bot version 2025-11-24
22
33
This bot automates the complete mining process, including offloading the ore and traveling between the mining spot and the unloading location.
44
@@ -1100,7 +1100,15 @@ unlockTargetsNotForMining context selectedMineables =
11001100
let
11011101
textItems =
11021102
target.textsTopToBottom
1103-
|> List.concatMap String.words
1103+
|> List.concatMap
1104+
(\targetString ->
1105+
{-
1106+
String.words "<center>Plagioclase" will return ["<center>Plagioclase"]
1107+
---
1108+
TODO: Consider stripping XML tags more generally here?
1109+
-}
1110+
String.words (String.replace "<center>" "" targetString)
1111+
)
11041112

11051113
looksLikeMineable =
11061114
List.any

0 commit comments

Comments
 (0)