Skip to content

fix: compare stripped mime type in RemoveMimeType - #356

Open
equationzhao wants to merge 1 commit into
masterfrom
equationzhao/fix-remove-mimetype-compare
Open

fix: compare stripped mime type in RemoveMimeType#356
equationzhao wants to merge 1 commit into
masterfrom
equationzhao/fix-remove-mimetype-compare

Conversation

@equationzhao

Copy link
Copy Markdown
Owner

Summary

  • RemoveMimeType stripped charset into s but still compared against mtype.String(), so matches failed when charset was present.
  • Compare against the stripped value instead.

Test plan

  • go test ./internal/filter/
  • Filter out a text file whose detector returns text/plain; charset=utf-8

Made with Cursor

Match against the charset-stripped value so filters like text/plain work when detectors return charset parameters.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Aug 12, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_b614af33-761d-456c-9e86-e25e4daa7f9f)

@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant