Skip to content

Improve ConvFuns detection#390

Merged
cschwan merged 5 commits into
masterfrom
improve-cli-convfunc-detection
Mar 27, 2026
Merged

Improve ConvFuns detection#390
cschwan merged 5 commits into
masterfrom
improve-cli-convfunc-detection

Conversation

@felixhekhorn
Copy link
Copy Markdown
Contributor

closes #386

@felixhekhorn felixhekhorn requested a review from cschwan March 25, 2026 10:28
@felixhekhorn felixhekhorn added the enhancement New feature or request label Mar 25, 2026
@felixhekhorn
Copy link
Copy Markdown
Contributor Author

nono I broke something (which I had not time to investigate yet ... that I will need to do locally instead of online 😇 )

@felixhekhorn
Copy link
Copy Markdown
Contributor Author

felixhekhorn commented Mar 26, 2026

I wanted to deal with both "special characters" + and = at the same time, but it wasn't so trivial as I thought - so I fix only the actual problem, which is the +

@felixhekhorn felixhekhorn requested a review from cschwan March 26, 2026 12:44
@Radonirinaunimi
Copy link
Copy Markdown
Member

I wanted to deal with both "special characters" + and = at the same time, but it wasn't so trivial as I thought - so I fix only the actual problem, which is the +

What exactly do you mean? That you cannot simply use rsplit_once also with =?

@felixhekhorn
Copy link
Copy Markdown
Contributor Author

What exactly do you mean? That you cannot simply use rsplit_once also with =?

that was my (naive) idea, but it resulted in the error you can see above - and then I decided to do the minimal step rather then debugging

@cschwan
Copy link
Copy Markdown
Contributor

cschwan commented Mar 27, 2026

While using str::rsplit_once is a straightforward solution, it's better to use str::strip_suffix and explicitly check against the cases +p, +f, +pf and +fp that we support. This allows to use + characters even in unpolarized PDF names.

If the tests all succeed, we can merge this.

@cschwan cschwan merged commit 4eab0e2 into master Mar 27, 2026
10 checks passed
@cschwan cschwan deleted the improve-cli-convfunc-detection branch March 27, 2026 15:28
@Radonirinaunimi Radonirinaunimi mentioned this pull request Mar 30, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI: Improve convolution function detection

3 participants