From 8220bd73ec41a1ca71a22e49f745104a02af1636 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 30 Apr 2013 12:56:24 -0400 Subject: [PATCH] ENH: monkey patch regexp for english words -- we need to allow searching package names --- sphinx/conf.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sphinx/conf.py b/sphinx/conf.py index c4570b3..5949bc3 100644 --- a/sphinx/conf.py +++ b/sphinx/conf.py @@ -75,6 +75,12 @@ version = '' # The full version, including alpha/beta/rc tags. release = '' +# Monkey patch "English" language regular expression so we could +# search for package names as well +import re +from sphinx.search.en import SearchEnglish +SearchEnglish._word_re = re.compile(r'[-.\w]+(?u)') + # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. language = 'en' -- 2.39.2