oni-php: find-php-class: Only match namespace at beginning of line
This commit is contained in:
parent
233c57fc89
commit
2b3048fc87
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
(let* ((class-name (cadr args))
|
(let* ((class-name (cadr args))
|
||||||
(file-names
|
(file-names
|
||||||
(run/strings (find "." -type f -name ,(string-append class-name ".php")
|
(run/strings (find "." -type f -name ,(string-append class-name ".php")
|
||||||
-exec grep "namespace" "{}" ";")
|
-exec grep "^namespace" "{}" ";")
|
||||||
(> 2 "/dev/null"))))
|
(> 2 "/dev/null"))))
|
||||||
(format #t "~s"
|
(format #t "~s"
|
||||||
(delete-duplicates
|
(delete-duplicates
|
||||||
|
|
Loading…
Reference in a new issue