Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for Search Craft#629

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
welkinwong wants to merge1 commit intoua-parser:master
base:master
Choose a base branch
Loading
fromwelkinwong:add-searchcraft-app

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
Copy link
ContributorAuthor

@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
Copy link
ContributorAuthor

@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 freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@lbarthonlbarthonlbarthon left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@welkinwong@lbarthon

[8]ページ先頭

©2009-2025 Movatter.jp