Code review comment for lp:~yann-papouin/ocb-addons/6.1-bug-1267845-product-and-category-search-improved-usability

Revision history for this message
Yann Papouin (yann-papouin) wrote :

Indeed, it covers previous cases, but it fails if a close bracket exists in 'default_code' or 'name'.

>>> re.compile('(\[([^]]+)\]?)').search('[Code[A][B][C]] Product name').group(2)
'Code[A'

« Back to merge proposal