HF RL Explorer

The Requirement and Marker parsers silently accept strings with trailing newline characters (LF, CRLF, etc.)…

The Requirement and Marker parsers silently accept strings with trailing newline characters (LF, CRLF, etc.)…: a task in repo2rlenv-swe-gen (Harbor dataset). The root cause is that the tokenizer's END rule uses Python's $ anchor, which — per Python's re semantics — also matches immediately before…

The task

The root cause is that the tokenizer's `END` rule uses Python's `$` anchor, which — per Python's `re` semantics — also matches immediately before a single trailing newline. This means a string like `'python_version >= "3"\n'` is accepted as a valid marker, and `'requests\n'` is accepted as a valid requirement, when…

Part of FineEnvs/repo2rlenv-swe-gen.