Special characters in filename - [id].tsx
binary64 opened this issue · comments
binary64 commented
Hi, what would the regex be to allow a file called [id].tsx
?
Many thanks
Lucas Löffel commented
Hey @binary64, like this [\d]+
or \[id\]
?
binary64 commented
Ah this works:
.tsx: 'regex:\[\d\]$'
for the [xxxx].tsx
files but not for regular files like index.tsx
But this doesn't
.tsx: 'regex:\[\d\]$ | kebabcase'
binary64 commented
Working solution:
.tsx: 'kebabcase | regex:\[[a-z]*\]$
Not sure what I did wrong but it's working now. Thank you.