Skip to content

Conversation

@welkinwong
Copy link
Contributor

Add support for Search Craft App

regexes.yaml Outdated
family_replacement: 'Baidu Explorer'

# Search Craft
- regex: '(SearchCraft)/(\d+)\.(\d+)\.(\d+)(?:\.(\d+)|)'
Copy link
Member

Choose a reason for hiding this comment

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

can you add a test for the (?:\.(\d+)|) part

@welkinwong welkinwong force-pushed the add-searchcraft-app branch from 907d724 to fdecbd8 Compare June 12, 2025 03:11
@welkinwong
Copy link
Contributor Author

@lbarthon Thanks for the feedback! I’ve added tests for the major.minor.patch format to ensure compatibility with cases where patch_minor is missing.

@lbarthon
Copy link
Member

sorry for the long delay @welkinwong - I'd like new regexes to be as low as possible in the regexes list
the parser will run regexes in order, and stop at the first match. the later your regex runs, the better it is for overall performance

@welkinwong welkinwong force-pushed the add-searchcraft-app branch from fdecbd8 to 4d1d264 Compare June 26, 2025 04:51
@welkinwong welkinwong force-pushed the add-searchcraft-app branch from 4d1d264 to d96adb0 Compare June 26, 2025 05:29
@welkinwong
Copy link
Contributor Author

@lbarthon hi, Thank you for your response. I've gone ahead and updated all the relevant PRs to ensure the regexes are placed as low as possible in the list.

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