Merge pull request 'MASTER: 4699-fix(checkInbox): fix condition' (!1121) from 4699-MASTER_fix-checkInbox into master
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
commit
64f1ce7b3a
|
@ -58,8 +58,7 @@ module.exports = Self => {
|
|||
emailBody = bufferCopy.toUpperCase().trim();
|
||||
|
||||
const bodyPositionOK = emailBody.match(/\bOK\b/i);
|
||||
const bodyPositionIndex = (bodyPositionOK.index == 0 || bodyPositionOK.index == 122);
|
||||
if (bodyPositionOK != null && bodyPositionIndex)
|
||||
if (bodyPositionOK != null && (bodyPositionOK.index == 0 || bodyPositionOK.index == 122))
|
||||
isEmailOk = true;
|
||||
else
|
||||
isEmailOk = false;
|
||||
|
|
Loading…
Reference in New Issue