feat(LangProfile::detect_from_filename): handle extension comparison more correctly #220

Merged
ada4a merged 2 commits from ada4a/mergiraf:lang_profile_better_detect_from_filename into main 2025-02-21 18:44:13 +01:00
Owner
No description provided.
_Just theoretically_, the extensions don't actually need to be valid
UTF-8 -- all they need is to be valid from the POW of the OS. `OsStr`
encodes this expectation better, and avoids one extra failure path
(`to_str` failing). But this is very unlikely to be a problem in
practice
feat(LangProfile::detect_from_filename): compare extensions case-insensitively
All checks were successful
/ test (pull_request) Successful in 55s
581b902b56
wetneb approved these changes 2025-02-21 18:42:01 +01:00
ada4a merged commit 2d229a7fc2 into main 2025-02-21 18:44:13 +01:00
ada4a deleted branch lang_profile_better_detect_from_filename 2025-02-21 18:44:15 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: mergiraf/mergiraf#220
No description provided.