Skip to content

Commit

Permalink
fix: Improve ingredient parsing (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomBursch authored Dec 6, 2023
1 parent d0aa896 commit a293f72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/helpers/recipe_item_markdown_extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ class RecipeItemMarkdownSyntax extends md.InlineSyntax {
caseSensitive: false,
);

static const String _pattern = r'@([^ \n,\.\(\)]+)';
static const String _pattern =
r"""@([^ \n\.\(\)\\\/\?\*\+,!%$#@^;:'"=~`]+)"""; // TODO: replace with \p{L} and unicode=true

@override
bool onMatch(md.InlineParser parser, Match match) {
Expand Down

0 comments on commit a293f72

Please sign in to comment.