-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
bug: update scrub logic #5388
bug: update scrub logic #5388
Conversation
@@ -108,7 +108,7 @@ function debounce(func, wait, immediate) { | |||
}; | |||
} | |||
|
|||
const scrub = value => value.replace(/[\W]+/g, ''); | |||
const scrub = value => value.replace(/[!@#$%^&*(),.?":{}|<>]+/g, ''); |
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.
I'm wondering if this opens us up at all to security risks and what the minimum characters we should allow is - I'm thinking +
and #
- any other weirdness out there y'all can think of?
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.
nope ! just those hence added those in
@octavioamu ?
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.
lgtm!
75c8c8d
to
b4d0087
Compare
Codecov Report
@@ Coverage Diff @@
## master #5388 +/- ##
=========================================
+ Coverage 29.67% 29.7% +0.02%
=========================================
Files 242 242
Lines 20601 20601
Branches 2968 2968
=========================================
+ Hits 6114 6120 +6
+ Misses 14236 14230 -6
Partials 251 251
Continue to review full report at Codecov.
|
Description
update scrub logic to show languages
Refers/Fixes
fixes #5387
Testing