Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris Beckers <joris.beckers@colruytgroup.com>2020-07-22 13:00:46 +0300
committerJoris Beckers <joris.beckers@colruytgroup.com>2020-07-22 13:00:46 +0300
commit4512d2757b0d1a589ceefa6d2df5144d52e7c406 (patch)
tree76afa2919e662b219798a20760cfa18cfeb078e8 /sphinx/search
parentd8064a8b8fe2b6b921a5409eeb636418b480981a (diff)
Allow searching for things like serials, phone numbers, etc
Diffstat (limited to 'sphinx/search')
-rw-r--r--sphinx/search/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/search/__init__.py b/sphinx/search/__init__.py
index b531145f4..4534dd333 100644
--- a/sphinx/search/__init__.py
+++ b/sphinx/search/__init__.py
@@ -117,7 +117,7 @@ var Stemmer = function() {
len(word) == 0 or not (
((len(word) < 3) and (12353 < ord(word[0]) < 12436)) or
(ord(word[0]) < 256 and (
- len(word) < 3 or word in self.stopwords or word.isdigit()
+ len(word) < 3 or word in self.stopwords
))))