Skip to content
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

fix(frontend): search user with trailing space #11184

Merged
merged 3 commits into from
Jul 8, 2023

Conversation

yahuli
Copy link
Contributor

@yahuli yahuli commented Jul 8, 2023

What

ユーザー検索する前にtrim()をする

Why

ユーザーを検索する際、末尾に空白があると正常に動作しないことがあります

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@github-actions github-actions bot added the packages/frontend Client side specific issue/PR label Jul 8, 2023
@codecov
Copy link

codecov bot commented Jul 8, 2023

Codecov Report

Merging #11184 (a87201b) into develop (0fbb46c) will increase coverage by 0.63%.
The diff coverage is n/a.

❗ Current head a87201b differs from pull request most recent head c3fa77e. Consider uploading reports for the commit c3fa77e to get more accurate results

@@             Coverage Diff             @@
##           develop   #11184      +/-   ##
===========================================
+ Coverage    77.33%   77.96%   +0.63%     
===========================================
  Files          908      173     -735     
  Lines        91643    21646   -69997     
  Branches      7545      496    -7049     
===========================================
- Hits         70874    16877   -53997     
+ Misses       20769     4769   -16000     

see 739 files with indirect coverage changes

@syuilo
Copy link
Member

syuilo commented Jul 8, 2023

API側でもtrimしてあげると良いかも

@github-actions github-actions bot added the packages/backend Server side specific issue/PR label Jul 8, 2023
@yahuli
Copy link
Contributor Author

yahuli commented Jul 8, 2023

@syuilo 改善しました

@syuilo syuilo merged commit e40a0b9 into misskey-dev:develop Jul 8, 2023
@syuilo
Copy link
Member

syuilo commented Jul 8, 2023

🙏🏻

@yahuli yahuli deleted the patch branch July 8, 2023 09:07
slofp pushed a commit to Secineralyr/misskey.dream that referenced this pull request Jul 21, 2023
* fix(frontend): search user with trailing space

* fix(backend): search user with trailing space

* Update search.ts

---------

Co-authored-by: syuilo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages/backend Server side specific issue/PR packages/frontend Client side specific issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants