Skip to content

Commit

Permalink
Fixed issue with bulk regex for ingredients
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexus450 committed Nov 23, 2023
1 parent e9df8ce commit 39964c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/blocks.build.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function ExtraOptionsModal(

function onBulkAddIngredients() {
const items = [];
const regex = /([^.\n\t\r\v\f][a-zA-Z0-9а-яА-Я].*)/gmi;
const regex = /([^\n\t\r\v\f][\w\Wа-яА-Я].*)/gmi
let m; let index = 0;

while ( ( m = regex.exec( _ingredients ) ) !== null ) {
Expand Down

0 comments on commit 39964c5

Please sign in to comment.