diff --git a/dist/index.js b/dist/index.js index b5aad962..97e86b8a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -8079,7 +8079,7 @@ async function run() { core.info(`Processed body text: ${processedBodyText}`); const updateBody = ({ - include: !body.toLowerCase().includes(processedBodyText.toLowerCase()), + include: !body.replace(/\s/g, '').toLowerCase().includes(processedBodyText.replace(/\s/g, '').toLowerCase()), prefix: !body.toLowerCase().startsWith(processedBodyText.toLowerCase()), suffix: !body.toLowerCase().endsWith(processedBodyText.toLowerCase()), replace: body.toLowerCase() !== processedBodyText.toLowerCase(), diff --git a/index.js b/index.js index 7c5883c0..176ec9c3 100644 --- a/index.js +++ b/index.js @@ -117,7 +117,7 @@ async function run() { core.info(`Processed body text: ${processedBodyText}`); const updateBody = ({ - include: !body.toLowerCase().includes(processedBodyText.toLowerCase()), + include: !body.replace(/\s/g, '').toLowerCase().includes(processedBodyText.replace(/\s/g, '').toLowerCase()), prefix: !body.toLowerCase().startsWith(processedBodyText.toLowerCase()), suffix: !body.toLowerCase().endsWith(processedBodyText.toLowerCase()), replace: body.toLowerCase() !== processedBodyText.toLowerCase(),