From 4048d7e0ee3fb73bef0b5496a6046af37102aa79 Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 8 Apr 2021 10:41:28 +0200 Subject: issue #8485 The browser based search doesn't handle underscores correctly The problem is that that "_" is seen as an Id character and not is escaped for JS search. This is a regression on: ``` Commit: a4ecbee86766b35d25d41d1a178806e1688485df [a4ecbee] Date: Monday, March 22, 2021 8:02:06 PM issue #8375: Lowercase search does not find non-ASCII uppercase pages and vice versa ``` and ``` Commit: 3a365ab230cab40910366eee5352534719541598 [3a365ab] Date: Wednesday, March 24, 2021 8:34:50 PM issue #8375 Lowercase search does not find non-ASCII uppercase pages and vice versa (part 2) ``` --- src/searchindex.cpp | 2 +- src/util.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/searchindex.cpp b/src/searchindex.cpp index 9afb7cb..cd048c4 100644 --- a/src/searchindex.cpp +++ b/src/searchindex.cpp @@ -555,7 +555,7 @@ QCString searchId(const Definition *d) TextStream t; for (size_t i=0;i=128 || c<0 || isalnum(c); } +inline bool isIdJS(int c) +{ + return c>=128 || c<0 || isalnum(c); +} QCString removeRedundantWhiteSpace(const QCString &s); -- cgit v0.12