You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.
I found that the fnmatch_translate_extended translation of the pattern 'squareup/inventory/adjustment*.proto' to a regular expression did not match the string 'squareup/inventory/adjustment.proto'
This is because the re returned expects at least one character to replace '*' in the expression above:
from twitter.common.dirutil.fileset import fnmatch_translate_extended
pattern = fnmatch_translate_extended('squareup/inventory/adjustment*.proto')
(Pdb) p pattern
u'squareup\\/inventory\\/adjustment([^/]+)\\.proto\\Z(?ms)'
A better translation would be to replace the '+' with '*':
I found that the fnmatch_translate_extended translation of the pattern 'squareup/inventory/adjustment*.proto' to a regular expression did not match the string 'squareup/inventory/adjustment.proto'
This is because the re returned expects at least one character to replace '*' in the expression above:
A better translation would be to replace the '+' with '*':
The text was updated successfully, but these errors were encountered: