1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-05 23:26:38 +02:00

52721: fix metafication and regexp/subject confusion in pcre_match error message

This commit is contained in:
Stephane Chazelas 2024-03-09 11:45:46 +00:00
parent fa9b3ad597
commit 47c7bc9b14
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2024-03-09 Stephane Chazelas <stephane@chazelas.org>
* 52721: fix metafication and regexp/subject confusion in
pcre_match error message.
2024-03-08 Stephane Chazelas <stephane@chazelas.org>
* 52704: Doc/Zsh/params.yo, mention new ${ ... } and ${|...}

View File

@ -405,7 +405,7 @@ bin_pcre_match(char *nam, char **args, Options ops, UNUSED(int func))
else {
PCRE2_UCHAR buffer[256];
pcre2_get_error_message(ret, buffer, sizeof(buffer));
zwarnnam(nam, "error in pcre matching for /%s/: %s", plaintext, buffer);
zwarnnam(nam, "error in pcre matching for %s: %s", *args, buffer);
}
if (pcre_mdata)