* fix incorrect parsing of spaces when parsing version constraints * add tests for `parse_constraint`