google / licensecheck

The licensecheck package classifies license files and heuristically determines how well they correspond to known open source licenses.
BSD 3-Clause "New" or "Revised" License
452 stars 75 forks source link

internal/match: add implicit cut operator, handle (c) vs c) in bullet lists #30

Closed rsc closed 4 years ago

rsc commented 4 years ago

This PR is a pair of commits.

The first handles allows (c) and c) to be treated as equivalent during text matches; they're not already equivalent because (c) means "copyright".

The second adds an implicit cut operator after wildcard slots, to greatly reduce the DFA construction cost and footprint.

See the individual commit messages for longer descriptions.