class Dependabot::Uv::FileUpdater::CompileFileUpdater
def hash_separator(requirement_string)
def hash_separator(requirement_string) hash_regex = RequirementParser::HASH return unless requirement_string.match?(hash_regex) current_separator = requirement_string .match(/#{hash_regex}((?<separator>\s*\\?\s*?)#{hash_regex})*/) .named_captures.fetch("separator") default_separator = requirement_string .match(RequirementParser::HASH) .pre_match.match(/(?<separator>\s*\\?\s*?)\z/) .named_captures.fetch("separator") current_separator || default_separator end