Home

ugit @main - refs - log -
-
https://git.jolheiser.com/ugit.git
The code powering this h*ckin' site
tree log patch
feat: allow regex search Signed-off-by: jolheiser <git@jolheiser.com>
Signature
-----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQMsRiR/E+Jhd7IqM4nTzVfAT6kMAPpLqQtLNGqagGhctv4GhdvcUhiTrVpJoTZvipQ sCOeymD2VaTM5pR3OIzwQ= -----END SSH SIGNATURE-----
jolheiser <git@jolheiser.com>
4 months ago
1 changed files, 3 additions(+), 2 deletions(-)
M internal/git/grep.go -> internal/git/grep.go
diff --git a/internal/git/grep.go b/internal/git/grep.go
index 98224c8099dabd9c0c8aa150d24fd7ecaf529610..d10c933d7ff46488ec10e45f75660a84df577b8f 100644
--- a/internal/git/grep.go
+++ b/internal/git/grep.go
@@ -19,9 +19,10 @@
 // Grep performs a naive "code search" via git grep
 func (r Repo) Grep(search string) ([]GrepResult, error) {
 package git
-)
+		search = regexp.QuoteMeta(strings.TrimPrefix(search, "="))
+	}
 package git
-// GrepResult is the result of a search
+
 	if err != nil {
 		return nil, err
 	}