Merge pull request #113691 from NeQuissimus/ripgrep_pcre2

ripgrep: Add PCRE2 check
This commit is contained in:
Daniël de Kok
2021-02-19 15:53:10 +01:00
committed by GitHub

View File

@@ -42,6 +42,8 @@ rustPlatform.buildRustPackage rec {
echo "abc\nbcd\ncde" > "$file"
$out/bin/rg -N 'bcd' "$file"
$out/bin/rg -N 'cd' "$file"
'' + lib.optionalString withPCRE2 ''
echo '(a(aa)aa)' | $out/bin/rg -P '\((a*|(?R))*\)'
'';
meta = with lib; {