From 2b3048fc8727a954d8afb9b6cf3292d1868eb7b6 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 30 Dec 2024 11:36:07 -0800 Subject: [PATCH] oni-php: find-php-class: Only match namespace at beginning of line --- oni-php/scripts/find-php-class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oni-php/scripts/find-php-class b/oni-php/scripts/find-php-class index 65f43fc..d8795c2 100755 --- a/oni-php/scripts/find-php-class +++ b/oni-php/scripts/find-php-class @@ -5,7 +5,7 @@ (let* ((class-name (cadr args)) (file-names (run/strings (find "." -type f -name ,(string-append class-name ".php") - -exec grep "namespace" "{}" ";") + -exec grep "^namespace" "{}" ";") (> 2 "/dev/null")))) (format #t "~s" (delete-duplicates