cpangrep icon indicating copy to clipboard operation
cpangrep copied to clipboard

Bizarre match problem

Open ribasushi opened this issue 10 years ago • 4 comments

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...?

ribasushi avatar Oct 01 '15 04:10 ribasushi

More bizarre - this works ...\d\. vs bare ...\d

ribasushi avatar Oct 01 '15 04:10 ribasushi

This also works: adding dist:namespace-clean

tsibley avatar Oct 01 '15 04:10 tsibley

Perhaps it's matching, but not getting reported properly in some cases?

tsibley avatar Oct 01 '15 04:10 tsibley

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

tsibley avatar Oct 01 '15 04:10 tsibley