Skip to content

fix(1688): review fixes for adapter#755

Merged
jackwener merged 1 commit intomainfrom
fix/1688-review-fixes
Apr 4, 2026
Merged

fix(1688): review fixes for adapter#755
jackwener merged 1 commit intomainfrom
fix/1688-review-fixes

Conversation

@jackwener
Copy link
Copy Markdown
Owner

Summary

  • Remove hover_price_text as MOQ source in search to prevent price fields being misinterpreted as MOQ data
  • Rename firstLine() to firstWord() to match actual behavior (splits by whitespace, not newlines)
  • Add missing "单" unit to item.ts extractSalesText regex
  • Add test case verifying hover_price_text is not used for MOQ extraction

Test plan

  • All 11 existing 1688 tests pass
  • New test verifies hover_price_text exclusion
  • TypeScript typecheck passes

…o firstWord, fix sales regex

- Remove hover_price_text as MOQ source in search normalizeSearchCandidate
  to prevent price fields from being misinterpreted as MOQ data
- Rename firstLine() to firstWord() to match its actual behavior (splits
  by whitespace, not newlines)
- Add missing "单" unit to item.ts extractSalesText regex
- Add test case verifying hover_price_text is not used for MOQ
@jackwener jackwener merged commit c3c3abb into main Apr 4, 2026
11 checks passed
@jackwener jackwener deleted the fix/1688-review-fixes branch April 4, 2026 06:53
just-buer pushed a commit to just-buer/opencli that referenced this pull request Apr 8, 2026
…o firstWord, fix sales regex (jackwener#755)

- Remove hover_price_text as MOQ source in search normalizeSearchCandidate
  to prevent price fields from being misinterpreted as MOQ data
- Rename firstLine() to firstWord() to match its actual behavior (splits
  by whitespace, not newlines)
- Add missing "单" unit to item.ts extractSalesText regex
- Add test case verifying hover_price_text is not used for MOQ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant