Skip to content

Commit

Permalink
889 - add brackets to allowed characters in path
Browse files Browse the repository at this point in the history
  • Loading branch information
kresimir-coko committed Jun 27, 2024
1 parent cc80435 commit 9ff18b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const Property = ({
}

if (path) {
path = path.replace(/[^a-zA-Z0-9_.]/g, (char) => {
path = path.replace(/[^a-zA-Z0-9_.[]]/g, (char) => {
const charCode = char.charCodeAt(0);

return charCode ? `0x${charCode.toString()}` : '0x00';
Expand Down

0 comments on commit 9ff18b2

Please sign in to comment.