1
0
Fork 0

oni-php: find-php-class: Only match namespace at beginning of line

This commit is contained in:
Tom Willemsen 2024-12-30 11:36:07 -08:00
parent 233c57fc89
commit 2b3048fc87

View file

@ -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