HF RL Explorer

Bug: SanitizeURL does not remove invisible Unicode characters and leading/trailing whitespace

Bug: SanitizeURL does not remove invisible Unicode characters and leading/trailing whitespace: a task in LegoFlow-SWE (Harbor dataset). SanitizeURL returns the original string unchanged. For example, Git‑related tools sometimes produce a URL prefixed with a BOM, and…

The task

`SanitizeURL` returns the original string unchanged. For example, Git‑related tools sometimes produce a URL prefixed with a BOM, and `SanitizeURL("\ufeffhttps://github.com/org/repo.git")` currently yields `"\ufeffhttps://github.com/org/repo.git"` instead of the clean URL. This causes later stages that rely on the…

Part of Lego-X/LegoFlow-SWE.