You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: improve username sanitization in profiling example (#7868)
Hello,
This commit updates the username sanitization logic in the profiling
example code to allow only alphanumeric characters. The original
pattern (/[!@#$%^&*]/g) was limited and could lead to inconsistent
behavior depending on input.
Changed:
- From: username = username.replace(/[!@#$%^&*]/g, '')
- To: username = username.replace(/[^a-zA-Z0-9]/g, '')
This change makes the input handling cleaner and more appropriate
for educational purposes, aligning better with common sanitization
practices.
Relates to: #7867
Signed-off-by: DongNyoung Lee <[email protected]>
0 commit comments