File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -80,13 +80,17 @@ sub search_web {
80
80
$from //= 0;
81
81
82
82
$search_term
83
- =~ s { ([ + - = > < ! & | ( ) { } \[ \] ^ " ~ * ? : \ / ])} { \\ $1 } x ;
83
+ =~ s { ([ + - = > < ! & | ( ) { } \[ \] ^ " ~ * ? \ / ])} { \\ $1 } x ;
84
84
85
85
# munge the search_term
86
86
# these would be nicer if we had variable-length lookbehinds...
87
87
# Allow q = 'author:LLAP' or 'module:Data::Page' or 'dist:'
88
88
# We are mapping to correct ES fields here - wonder if ANYONE
89
89
# uses these?!?!?!
90
+ #
91
+ # The exceptions below are used specifically by the front end search.
92
+ # We've temporarily removed the ":" from the regex above so that the the
93
+ # author/dist/module searches work again. The were broken in 225749b6e.
90
94
$search_term #
91
95
=~ s { (^|\s )author:([a-zA-Z]+)(?=\s |$)} { $1author:\U $2 \E } g ;
92
96
$search_term
You can’t perform that action at this time.
0 commit comments