Open
Description
I'm writing some elisp code that relies on ag-project-regexp
and ag/search
functions. It includes a line like this:
(ag-project-regexp (format "fn.* %s" fn-name))
The goal is to search for strings such as fn[something] fn-name
(function definitions). However, the ag
command includes fn.\* fn-name
. The regexp is not surrounded by quotes and/or a backslash is inserted before the *
character, resulting in behavior different than expected. I'm probably doing something wrong, but what?
Metadata
Assignees
Labels
No labels
Activity