Skip to content

Conversation

anonrig
Copy link
Member

@anonrig anonrig commented Sep 24, 2025

It seems we don't need to remove the first character in happy path.

@anonrig anonrig requested a review from lemire September 24, 2025 00:53
@anonrig anonrig force-pushed the yagiz/simplify-process-methods branch from 293cc51 to 911abb3 Compare September 24, 2025 00:55
@anonrig anonrig force-pushed the yagiz/simplify-process-methods branch from d8610d8 to 2a4a265 Compare September 24, 2025 01:03
}
return std::string(value);
}
// Return the result of running canonicalize a protocol given strippedValue.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could add as a comment that canonicalize_protocol will already remove the trailing : if any ? (optional)

// Return the result of running canonicalize a search given strippedValue.
return url_pattern_helpers::canonicalize_search(value);
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If type != process_type::pattern, then you are no longer removing an eventual ?. But I don't see canonicalize_search doing the check. So it looks like you might have made a change in the logic?

}
return std::string(value);
}
// Return the result of running canonicalize a hash given strippedValue.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have the same question here... you might now pass a leading # to canonicalize_hash whereas you use not to. Why is this ok?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants