Case sensitive file extension
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 82/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- zig
- Domain
- backend
Research direction
The file extension check is in src/io/io.zig around line 189, where the extension is compared case-sensitively. Read the function containing that line to see how the extension is obtained and matched. Make the comparison ignore case, such as by lowercasing the extension before comparing, so uppercase names like .PNG or .JPG are accepted. Done when an uppercase extension loads the same as a lowercase one, which you can confirm with any existing io tests or a quick manual run.
Written by the indexing model from the issue text.
Description
Hi,
in https://github.com/dmtrKovalenko/odiff/blob/6dd1e9629810042c03a81fc787f37b245772970a/src/io/io.zig#L189 the file extension is tested in a case sensitive manner.
However, images often have uppercase extensions too, especially if they come from an old camera.
Comparison should be case-insensitive to handle all usecases.
- Dominant language
- Zig
- Stars
- 3.3k
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dmtrKovalenko/odiff
-
Difficulty 4/5 3-5 days Newbie friendliness 15/100
dmtrKovalenko/odiff#190 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
dmtrKovalenko/odiff#171 · 1 comment ·
-
FlakinessOpen
Difficulty 4/5 3-5 days Newbie friendliness 25/100
dmtrKovalenko/odiff#164 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
dmtrKovalenko/odiff#141 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
dmtrKovalenko/odiff#120 · 4 comments ·
All issues in dmtrKovalenko/odiff
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 2 days
-
SVG path arcs with an explicit zero radius throw DivisionByZeroErrorPossibly taken @Syed-Shehroz-Sohail claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 5 days
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
christian-raj/S-Aloha#503 ·