HF RL Explorer

parseInt doesn't strip all ES5 whitespace chars even with es5-shim loaded

parseInt doesn't strip all ES5 whitespace chars even with es5-shim loaded: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). I'm cleaning up numeric strings that come from copy-pasting (user pastes a value from a webpage / spreadsheet and it ends up containing a…

The task

I'm cleaning up numeric strings that come from copy-pasting (user pastes a value from a webpage / spreadsheet and it ends up containing a non-breaking space `\u00A0` or other Unicode whitespace in front of the digits). My code does roughly:

Part of FineEnvs/MiMo-V2.6-RL-harbor-code.