DEBUG: pgBadger version 12.1.
Can't find Unicode property definition "g" in regex; marked by <-- HERE in m/^C:\pg <-- HERE badger\__test_retention_11.8.BBO.01\report/ at c:\pgbadger\pgbadger-11.8.commit-cf9f511206 line 19288.
After analysis, the issue is due to the line:
sub set_output_extension
{
[...]
# Add the destination directory
$of = $od . '/' . $of if ($od && $of !~ m#^$od#);
[...]
}
The problem is that $od contains special chars and that they must be escaped to do string comparison through the regexp engine.
My suggestion (and my test proved to me it works) is to do automatic escaping by replacing the line:
sub set_output_extension
{
[...]
# Add the destination directory
$of = $od . '/' . $of if ($od && $of !~ m#^$od#);
[...]
}
by
sub set_output_extension
{
[...]
# Add the destination directory
$of = $od . '/' . $of if ($od && $of !~ m#^\Q$od\E#);
[...]
}
Hi,
Test done with: pgbadger 12.1 commit cf9f511206
Here is my command line:
As you can see, my outdir is:
Output with the ERROR is:
After analysis, the issue is due to the line:
The problem is that $od contains special chars and that they must be escaped to do string comparison through the regexp engine.
My suggestion (and my test proved to me it works) is to do automatic escaping by replacing the line:
by
Regards.