diff --git a/src/oca_github_bot/tasks/migration_issue_bot.py b/src/oca_github_bot/tasks/migration_issue_bot.py
index 510c435..b4911a7 100644
--- a/src/oca_github_bot/tasks/migration_issue_bot.py
+++ b/src/oca_github_bot/tasks/migration_issue_bot.py
@@ -39,7 +39,7 @@ def _set_lines_issue(gh_pr_user_login, gh_pr_number, issue_body, module):
         if added:  # Bypass the checks for faster completion
             lines.append(line)
             continue
-        groups = re.match(rf"^- \[( |x)\] {module}( |\r)", line)
+        groups = re.match(rf"^- \[( |x)\] \b{module}\b", line)
         if groups:  # Line found
             # Get the Old PR value
             regex = r"\#(\d*)"

diff --git a/tests/test_migration_issue_bot.py b/tests/test_migration_issue_bot.py
index 1cd703d..5ace8f7 100644
--- a/tests/test_migration_issue_bot.py
+++ b/tests/test_migration_issue_bot.py
@@ -53,6 +53,14 @@ def test_set_lines_issue(gh):
             f"- [x] {module} - By @{gh_pr_user_login} - #{gh_pr_number}\n"
             f"- [ ] z_module_1 - By @pedrobaeza - #2",
         ),
+        (
+            f"Issue with list containing the module with no PR\n"
+            f"- [x] {module}\n"
+            f"- [ ] z_module_1 - By @pedrobaeza - #2",
+            f"Issue with list containing the module with no PR\n"
+            f"- [x] {module} - By @{gh_pr_user_login} - #{gh_pr_number}\n"
+            f"- [ ] z_module_1 - By @pedrobaeza - #2",
+        ),
         (
             "Issue with no list",
             f"Issue with no list\n"

ocabot migration duplicating lines in migration issue?
See for example https://github.com/OCA/server-env/issues/120 where the issue was created correctly but now lines with references to a PR are duplicated.
tests/test_migration_issue_bot.py::test_set_lines_issue
tests/test_migration_issue_bot.py::test_create_or_find_branch_milestone tests/test_migration_issue_bot.py::test_find_issue