about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-03-23 17:26:32 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-04-18 20:59:09 +0200
commit8e29ed43d9943b2cf705e3511e54ba01d2feaa93 (patch)
tree3aa1edd8d84885ed20d6e8c98652de8c2bde6f26 /src/tools
parentf9251eef688590cd4770baaa01241bbb060c2eba (diff)
downloadrust-8e29ed43d9943b2cf705e3511e54ba01d2feaa93.tar.gz
rust-8e29ed43d9943b2cf705e3511e54ba01d2feaa93.zip
Add isIdentCharacter function to ensure that unexpected characters are handled correctly
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/rustdoc-js/tester.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/rustdoc-js/tester.js b/src/tools/rustdoc-js/tester.js
index afd878423c0..d5209089892 100644
--- a/src/tools/rustdoc-js/tester.js
+++ b/src/tools/rustdoc-js/tester.js
@@ -274,7 +274,8 @@ function loadSearchJsAndIndex(searchJs, searchIndex, storageJs, crate) {
                            "isWhitespace", "isSpecialStartCharacter", "isStopCharacter",
                            "parseInput", "getItemsBefore", "getNextElem", "createQueryElement",
                            "isReturnArrow", "isPathStart", "getStringElem", "newParsedQuery",
-                           "itemTypeFromName", "isEndCharacter", "isErrorCharacter"];
+                           "itemTypeFromName", "isEndCharacter", "isErrorCharacter",
+                           "isIdentCharacter"];
 
     const functions = ["hasOwnPropertyRustdoc", "onEach"];
     ALIASES = {};