Commit 414a4240 authored by Floréal Cabanettes's avatar Floréal Cabanettes

Fix spell checker for ingredients, Fixes #8

parent 8b3939bc
......@@ -1429,7 +1429,7 @@ void QRecipeWriter::startAbcCheck(bool silent) {
QString item = model1->item(i)->text();
correction = item.split("|")[1];
QString head = "";
QRegExp expIngr("ingr#.+#.*#");
QRegExp expIngr("ingr#.*#.*#");
if (correction.contains(expIngr)) {
head = expIngr.cap(0);
correction.replace(head, "");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment