mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-22 00:03:20 +01:00
Use a boolean .includes() instead of a regex match() for checking string contains
This commit is contained in:
parent
57ead7f0c0
commit
73af7f5481
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user