##// END OF EJS Templates
match: use _BASE_SIZE instead of magic value 4...
Martin von Zweigbergk -
r40817:e115a645 default
parent child Browse files
Show More
@@ -1212,7 +1212,7 b' def _buildregexmatch(kindpats, globsuffi'
1212 groupsize = _BASE_SIZE
1212 groupsize = _BASE_SIZE
1213 for idx, r in enumerate(regexps):
1213 for idx, r in enumerate(regexps):
1214 piecesize = len(r)
1214 piecesize = len(r)
1215 if (piecesize + 4) > MAX_RE_SIZE:
1215 if (piecesize + _BASE_SIZE) > MAX_RE_SIZE:
1216 msg = _("matcher pattern is too long (%d bytes)") % piecesize
1216 msg = _("matcher pattern is too long (%d bytes)") % piecesize
1217 raise error.Abort(msg)
1217 raise error.Abort(msg)
1218 elif (groupsize + piecesize) > MAX_RE_SIZE:
1218 elif (groupsize + piecesize) > MAX_RE_SIZE:
General Comments 0
You need to be logged in to leave comments. Login now