diff options
-rw-r--r-- | snakemake.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/snakemake.el b/snakemake.el index 8c3bf7e..3f4dff4 100644 --- a/snakemake.el +++ b/snakemake.el @@ -258,7 +258,7 @@ The file list is determined by the output of (goto-char (point-min)) ;; Lean towards misclassifying targets as valid rather than ;; silently dropping valid targets as invalid. - (not (looking-at snakemake-invalid-target-re))))) + (not (re-search-forward snakemake-invalid-target-re nil t))))) (declare-function org-element-context "org-element") (declare-function org-element-property "org-element") |