1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-23 15:19:41 +02:00
mealie/frontend/composables/recipe-page
jenscalaerts 83b8ce659e
feat: improve automatic ingredient linking (#1836)
* Filtering special characters during automatic linking of ingredients to instructions

Used a unicode group to have a set of all unicode punctuation marks

* allowing for linking of ingredients to instruction at the beginning of a newline in the instruction

* Extracted ingredient matching into a composable and added tests. Ignoring 2 letter words to avoid false matches.

While testing the code 2 letter matches were a large source of false positives.
2022-12-29 13:00:31 -09:00
..
shared-state.ts chore: frontend testing setup (#1739) 2022-10-22 11:51:07 -08:00
use-extract-ingredient-references.test.ts feat: improve automatic ingredient linking (#1836) 2022-12-29 13:00:31 -09:00
use-extract-ingredient-references.ts feat: improve automatic ingredient linking (#1836) 2022-12-29 13:00:31 -09:00