From 30ba5c0fafb399080b4d264fbcad5c0b5e2fafe6 Mon Sep 17 00:00:00 2001 From: PanicMike-9 Date: Sun, 13 Sep 2026 12:17:59 +0000 Subject: [PATCH] fix(commandline): allow '+' in search regex and update C++ wordlist --- frontend/src/ts/commandline/commandline.ts | 3 +- frontend/static/languages/code_c++.json | 42 +++++++++++++++++++++- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/frontend/src/ts/commandline/commandline.ts b/frontend/src/ts/commandline/commandline.ts index 33e58fa03b6f..aedd74967e52 100644 --- a/frontend/src/ts/commandline/commandline.ts +++ b/frontend/src/ts/commandline/commandline.ts @@ -257,7 +257,8 @@ async function goBackOrHide(): Promise { } function stripPunctuation(str: string): string { - return str.replace(/[!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~]/g, ""); + // allow '+' for code c++ + return str.replace(/[!"#$%&'()*,\-./:;<=>?@[\\\]^_`{|}~]/g, ""); } async function filterSubgroup(): Promise { diff --git a/frontend/static/languages/code_c++.json b/frontend/static/languages/code_c++.json index 7ce1579f84bc..452bf4a7781a 100644 --- a/frontend/static/languages/code_c++.json +++ b/frontend/static/languages/code_c++.json @@ -112,6 +112,46 @@ "priority_queue", "array", "pair", - "tuple" + "tuple", + "cin", + "format", + "print", + "println", + "string", + "string_view", + "span", + "tolower", + "toupper", + "isalnum", + "isalpha", + "isdigit", + "isspace", + "size_t", + "int8_t", + "int16_t", + "int32_t", + "int64_t", + "uint8_t", + "uint16_t", + "uint32_t", + "uint64_t", + "float32_t", + "float64_t", + "unique_ptr", + "shared_ptr", + "weak_ptr", + "make_unique", + "make_shared", + "variant", + "optional", + "sort", + "max", + "min", + "find", + "accumulate", + "clamp", + "transform", + "move", + "swap" ] }