]> git.cameronkatri.com Git - mandoc.git/commitdiff
Fix lookup not to use full-out regexp search.
authorKristaps Dzonsons <kristaps@bsd.lv>
Sun, 25 Mar 2012 00:46:39 +0000 (00:46 +0000)
committerKristaps Dzonsons <kristaps@bsd.lv>
Sun, 25 Mar 2012 00:46:39 +0000 (00:46 +0000)
cgi.c

diff --git a/cgi.c b/cgi.c
index 2f5870ff8efd34949e8130af7f3eeb41d513e184..c09acb8e9dee61f84c6c50f4eac7685afd1441b9 100644 (file)
--- a/cgi.c
+++ b/cgi.c
@@ -1,4 +1,4 @@
-/*     $Id: cgi.c,v 1.42 2012/03/24 01:46:25 kristaps Exp $ */
+/*     $Id: cgi.c,v 1.43 2012/03/25 00:46:39 kristaps Exp $ */
 /*
  * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
  *
@@ -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);