Page MenuHomePhabricator

Fix a prefix/suffix counting issue in Arcanist lint rendering
ClosedPublic

Authored by epriestley on Sep 5 2017, 6:50 PM.
Tags
None
Referenced Files
F14716656: D18538.diff
Fri, Jan 17, 7:01 PM
Unknown Object (File)
Tue, Jan 7, 9:33 PM
Unknown Object (File)
Mon, Dec 30, 3:35 PM
Unknown Object (File)
Mon, Dec 30, 1:42 AM
Unknown Object (File)
Fri, Dec 27, 10:45 AM
Unknown Object (File)
Fri, Dec 27, 7:16 AM
Unknown Object (File)
Fri, Dec 20, 6:36 PM
Unknown Object (File)
Dec 13 2024, 8:14 PM
Subscribers
None

Details

Summary

Ref T9846. See PHI48. For replacing text in the form "ABC" with "ABBC", the trimmer had a bug.

Test Plan

Added failing tests, fixed 'em.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

That build failure might be "legitimate-ish" -- maybe a version difference.

PHP 7.0.0 - If string is equal to start characters long, an empty string will be returned. Prior to this version, FALSE was returned in this case.
http://php.net/substr

Thanks, PHP.

  • Add some casting to force PHP7 behavior?
This revision is now accepted and ready to land.Sep 5 2017, 8:04 PM
This revision was automatically updated to reflect the committed changes.