HF RL Explorer

GetWordBeforeCursor returns incorrect word and causes slice bounds panic

GetWordBeforeCursor returns incorrect word and causes slice bounds panic: a task in harness-adapters: Agentic coding environments (Harbor dataset). The GetWordBeforeCursor method is returning incorrect words and causing a slice bounds out of range panic in certain cases.

The task

The `GetWordBeforeCursor` method is returning incorrect words and causing a slice bounds out of range panic in certain cases.

Part of harness-hub/harness-adapters.