cpangrep
cpangrep copied to clipboard
Bizarre match problem
This incantation properly finds the namespace::clean Changelog
Yet this does not include n::c in the results
The only difference is ...\d vs ...0
Perhaps an ::RE2 issue...?
More bizarre - this works ...\d\. vs bare ...\d
This also works: adding dist:namespace-clean
Perhaps it's matching, but not getting reported properly in some cases?
RE2 doesn't have an issue, at least on the surface:
$ perl -Mre::engine::RE2=-strict,1 -E 'say " [0.25]" =~ /^\s+\[0/ ? "yes" : "no"'
yes
$ perl -Mre::engine::RE2=-strict,1 -E 'say " [0.25]" =~ /^\s+\[\d/ ? "yes" : "no"'
yes