Remove misleading comment

This commit is contained in:
Fabian Homborg 2022-01-07 19:35:21 +01:00
parent 03c188086c
commit a7b80c9881

View file

@ -1042,8 +1042,7 @@ static void escape_string_script(const wchar_t *orig_in, size_t in_len, wcstring
} }
/// Escapes a string for use in a regex string. Not safe for use with `eval` as only /// Escapes a string for use in a regex string. Not safe for use with `eval` as only
/// characters reserved by PCRE2 are escaped, i.e. it relies on fish's automatic escaping /// characters reserved by PCRE2 are escaped.
/// of subshell output in subsequent concatenation or for use as an argument.
/// \param in is the raw string to be searched for literally when substituted in a PCRE2 expression. /// \param in is the raw string to be searched for literally when substituted in a PCRE2 expression.
static wcstring escape_string_pcre2(const wcstring &in) { static wcstring escape_string_pcre2(const wcstring &in) {
wcstring out; wcstring out;