Simplify fetcher regexes; doc the '^' assumption.

Review Request #2980 - Created Oct. 16, 2015 and submitted

Information
John Sirois
pants
jsirois/RB/2976/follow-up
2384
2976
dce0a9a...
Reviewers
pants-reviews
stuhood
Both `Fetchers` and `ArchiveFetcher` employ regexes and both check that
matches start at the 0th slot; as such, no explicit anchors are needed.
Document this fact and remove anchors from the builtin default
configuration.

 contrib/go/src/python/pants/contrib/go/subsystems/fetchers.py | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)
CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/85773278
Stu Hood
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

Loading...