summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2012-03-25 00:46:39 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2012-03-25 00:46:39 +0000
commitc62650afbdb252470689d5248f5b941403bb97b3 (patch)
treefc01420818f69afe6c273d282c757cc36ab185be
parent1c3d010a6c111caf97589c5f3ee3e12fd1f2bda8 (diff)
downloadmandoc-c62650afbdb252470689d5248f5b941403bb97b3.tar.gz
Fix lookup not to use full-out regexp search.
-rw-r--r--cgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi.c b/cgi.c
index 0423c238..b211ac74 100644
--- a/cgi.c
+++ b/cgi.c
@@ -743,7 +743,7 @@ format(const struct req *req, const char *file)
}
snprintf(opts, sizeof(opts), "fragment,"
- "man=%s/search.html?sec=%%S&expr=%%N,"
+ "man=%s/search.html?sec=%%S&expr=Nm~^%%N$,"
/*"includes=/cgi-bin/man.cgi/usr/include/%%I"*/,
progname);