Use a boolean .includes() instead of a regex match() for checking string contains

This commit is contained in:
cmdr2 2023-01-09 19:19:30 +05:30
parent 57ead7f0c0
commit 73af7f5481

View File

@ -465,7 +465,7 @@ async function parseContent(text) {
}
// Normal txt file.
const task = parseTaskFromText(text)
if (text.toLowerCase().match('seed:') && task) { // only parse valid task content
if (text.toLowerCase().includes('seed:') && task) { // only parse valid task content
restoreTaskToUI(task)
return true
} else {