Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 624050400
  • Loading branch information
Shoptimizer Team authored and rihito0907 committed Apr 17, 2024
1 parent b9523c7 commit a9fff3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shoptimizer_api/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
MAX_COLOR_STR_LENGTH_FOR_EACH: int = 40
MAX_COLOR_STR_LENGTH_IN_TOTAL: int = 100

CLOTHING_SIZES_CHARS_SLASH_SEPARATOR = r'((([0-9]{1,3})?[X]*(\bS{1,2})\b)?\/?){0,10}(\bM{1}\b)?\/?(\b(([0-9]{1,3})?[X]*(\bL{1,2})\b)?\/?){0,10}'
CLOTHING_SIZES_CHARS_SLASH_SEPARATOR = r'(\b([0-9]{1,3})?(X{0,3})(S{1,2})\b|\bM{1}\b|\b([0-9]{1,3})?(X{0,2})(L{1,2})\b)(\/(([0-9]{1,3})?(X{0,3})(S{1,2})\b|M{1}\b|([0-9]{1,3})?(X{0,2})(L{1,2})\b))*'
CLOTHING_SIZES_CHARS_REGEX_RANGE = r'((\b([0-9]{1,3})?[X]*(S{1,2}\b)?(\bM{1}\b)?\b([0-9]{1,3})?[X]*(L{1,2}\b)?)(-(\b([0-9]{1,3})?[X]*(S{1,2}\b)?(\bM{1}\b)?\b([0-9]{1,3})?[X]*(L{1,2})?))?)'
CLOTHING_SIZES_REGEX_WORDS = r'((X|EXTRA)?[\s|-]?SMALL\/?\b|(X|EXTRA)?[\s|-]?MEDIUM\/?\b|(X|EXTRA)?[\s|-]?LARGE\/?\b|OSFA\/?\b|OS\/?\b)'
CLOTHING_SIZES_REGEX_WORDS = r'((X|EXTRA)?[\s|-]?SMALL\/?\b|(X|EXTRA)?[\s|-]?MEDIUM\/?\b|(X|EXTRA)?[\s|-]?LARGE\/?\b|OSFA\/?\b|\bOS\/?\b)'
CLOTHING_SIZES_JA: Tuple[str,
...] = ('XXS', 'XS', 'S', 'M', 'L', 'LL', 'XL', 'XXL')
CLOTHING_SIZES_KO: Tuple[str, ...] = ('XXS', 'XS', 'S', 'M', 'L', 'XL', 'XXL')
Expand Down

0 comments on commit a9fff3a

Please sign in to comment.