Skip to content

Improve find_inline_quantity function - #99

Merged
dubadub merged 1 commit into
mainfrom
feat/improve-find-inline-quantity
Jul 11, 2026
Merged

Improve find_inline_quantity function#99
dubadub merged 1 commit into
mainfrom
feat/improve-find-inline-quantity

Conversation

@Zheoni

@Zheoni Zheoni commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

The function tries to find quantities in a string during analysis. It's used by the INLINE_QUANTITIES extension.

The problem I faced is that it failed a somewhat common case like "Then add 10 ml." because the ending "." was in the unit, and the unit was not recognised. This small fix should help detect more cases supossing unit names are alphabetic.

I have not been maintaining this repo in more than a year, so I don't want to be the one merging changes. 😅

@pkg-pr-new

pkg-pr-new Bot commented Jul 11, 2026

Copy link
Copy Markdown

commit: e5109dd

@Zheoni Zheoni changed the title Improve find_inline_quantiy function Improve find_inline_quantity function Jul 11, 2026
@dubadub
dubadub merged commit 9454002 into main Jul 11, 2026
7 checks passed
@dubadub

dubadub commented Jul 11, 2026

Copy link
Copy Markdown
Member

Thanks!

@dubadub
dubadub deleted the feat/improve-find-inline-quantity branch July 11, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants