Quote search terms
This commit is contained in:
parent
abc9789bff
commit
538d1a8804
2
TODO.md
2
TODO.md
|
@ -11,8 +11,6 @@ Some way of getting a list of all packages
|
|||
|
||||
Want to be able to sort result tables
|
||||
|
||||
Searching for e.g. "(list 1 2)" causes a regexp compilation failure.
|
||||
|
||||
you should be able to specify git repos over http/https
|
||||
you should be able to specify subdirs in git repos
|
||||
you should check the existence of repos/github repos/urls/etc via XHR
|
||||
|
|
|
@ -194,7 +194,7 @@
|
|||
(regexp-match? re (@ pkg _SEARCHABLE-TEXT_))))
|
||||
|
||||
(define (package-search text tags)
|
||||
(define res (map (lambda (r) (pregexp (format "(?i:~a)" r))) (string-split text)))
|
||||
(define res (map (lambda (r) (regexp (regexp-quote r))) (string-split text)))
|
||||
(define packages (manager-rpc 'packages))
|
||||
(sort-package-names
|
||||
(filter (lambda (package-name)
|
||||
|
|
Loading…
Reference in New Issue
Block a user