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

trimAvoidCharacters() の単体テスト #176

Open
knokmki612 opened this issue Feb 5, 2025 · 0 comments
Open

trimAvoidCharacters() の単体テスト #176

knokmki612 opened this issue Feb 5, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@knokmki612
Copy link
Contributor

どういったケースでどのような文字列が返ってくるかなどテストされていると品質管理の観点でも望ましく、この関数の作用を理解する際にテストコードが理解に役立つかもしれない

export default (string) =>
string.replace(/[&$\x00-\x1F@=;:+ ,?\\{\x80-\xFF^}%\x60\]'">~<#|]/g, "");

@knokmki612 knokmki612 added the enhancement New feature or request label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant