Open scor opened 10 years ago
Can you give me a tarball of a directory that this breaks on? I started to try to reproduce this issue, but it meant going down a rabbit hole of dependencies installing drush, composer, drupal, and php.
I've narrowed it down to this archive: http://ftp.drupal.org/files/projects/gm3-7.x-1.x-dev.tar.gz - it seems to come from the gm3_region/region_data/ directory which contains some binaries.
The files in that directory are ASCII and UTF-8. Some lines in them are very long, which makes your regex have pathological performance. I'm pretty sure the [^a-zA-Z_]*
bit is causing you trouble.
I wanted to use ag to search for strings in https://www.drupal.org/sandbox/greggles/1481160. I installed and downloaded all the repositories according to the "Gotta Download Them All" tool instructions, and ran this command from inside the allmodules directory:
The output consistently stops at the same point:
The CPU remains at 100% but no more data is output.