Summary:
Makes lots of noise:
{F22758}
Test Plan:
Linted file with several bad characters per line.
Linted file with one bad character per line.
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D3896
$data = $this->getData($path);
$matches = null;
+ $bad = '[^\x09\x0A\x20-\x7E]';
$preg = preg_match_all(
- '/[^\x09\x0A\x20-\x7E]+/',
+ "/{$bad}(.*{$bad})?/",
$data,
$matches,
PREG_OFFSET_CAPTURE);