Repository navigation
fix(normalizer): năm is a duration only at the end; a bare size equal to the gift's keeps it #1334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
sed -n '1259,1273p;1342,1425p;1550,1561p;1860,1905p' apps/importer/src/shopee/product-normalizer.tsRepository: DOS/Rate
Length of output: 8447
Script executed:
Repository: DOS/Rate
Length of output: 3527
Script executed:
Repository: DOS/Rate
Length of output: 5931
Script executed:
Repository: DOS/Rate
Length of output: 2722
Script executed:
Repository: DOS/Rate
Length of output: 1086
Script executed:
Repository: DOS/Rate
Length of output: 2614
Add the period to the
nămseparator set.In the head, the shop-age exclusion for
nămdoes not treat a following period as a separator. For a title such asiPad Pro M4 Shop 11 năm. tặng ốp 13 inch, the bare11is read as the iPad screen size. The product is keyed as an 11-inch iPad instead of the gift's 13-inch fallback. At the merge base, the period was not a separator either, but the older pattern excludednămfollowed by any non-letter, non-digit character, so the case was not affected. Add.to the lookahead separator class sonăm.is excluded again.🐛 Suggested fix
Committable suggestion
Script executed:
Repository: DOS/Rate
Length of output: 8317
Script executed:
Repository: DOS/Rate
Length of output: 2126
Script executed:
sed -n '1294,1330p;1449,1475p;1545,1575p;2060,2072p' apps/importer/src/shopee/product-normalizer.tsRepository: DOS/Rate
Length of output: 6000
Add
kinh doanhto the shop-age words that stop a bare size from being read.Shop 11 năm kinh doanhis not treated as shop age, so its11is read as the iPad size. The 13-inch gift size is discarded, and the model key becomes the 11-inch key. The base code excluded this11.🐛 Suggested fix
Committable suggestion