Skip to content

Commit

Permalink
code review of Andrea Leardini
Browse files Browse the repository at this point in the history
Co-authored-by: Andrea Leardini <[email protected]>
  • Loading branch information
stephdl and andre8244 authored Feb 7, 2024
1 parent 3c2bd5b commit a3eafd7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export default {
let badChars = prop.match(/[^a-zA-Z0-9\-_]/g);
if (badChars && !allowedCharsRegex.test(prop)) {
// replace space with _(space) for better readability
badChars = badChars.map(char => char === ' ' ? '_(space)' : char);
badChars = badChars.map(char => char === ' ' ? '(space)' : char);
return {
isValid: false,
badChars: badChars ? [...new Set(badChars)] : null
Expand Down

0 comments on commit a3eafd7

Please sign in to comment.