I want a pure JavaScript function extractTagContent(text: string, rules: Array<{type: string, value…
I want a pure JavaScript function extractTagContent(text: string, rules: Array<{type: string, value…: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). If rules is empty or missing, it should return the original text unchanged. Enabled exclude rules should run first…
The task
If `rules` is empty or missing, it should return the original `text` unchanged. Enabled `exclude` rules should run first and remove whole XML-like blocks such as `<thinking>...</thinking>` before anything is collected. Enabled `include` rules should collect content from matching `<tag>...</tag>` blocks and from…
Part of FineEnvs/MiMo-V2.6-RL-harbor-code.