mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
Merge pull request #113691 from NeQuissimus/ripgrep_pcre2
ripgrep: Add PCRE2 check
This commit is contained in:
commit
40652f8603
@ -42,6 +42,8 @@ rustPlatform.buildRustPackage rec {
|
|||||||
echo "abc\nbcd\ncde" > "$file"
|
echo "abc\nbcd\ncde" > "$file"
|
||||||
$out/bin/rg -N 'bcd' "$file"
|
$out/bin/rg -N 'bcd' "$file"
|
||||||
$out/bin/rg -N 'cd' "$file"
|
$out/bin/rg -N 'cd' "$file"
|
||||||
|
'' + lib.optionalString withPCRE2 ''
|
||||||
|
echo '(a(aa)aa)' | $out/bin/rg -P '\((a*|(?R))*\)'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user