brail icon indicating copy to clipboard operation
brail copied to clipboard

`withBrail` breaks with any page named `[foo].tsx` in Next.

Open jamesmoss opened this issue 2 years ago • 1 comments

The regex in extractFileParts is too naive and needs to include squared brackets in the filename portion.

jamesmoss avatar Jul 07 '23 12:07 jamesmoss

Hey @jamesmoss thanks for pointing this out. Agreed. The current approach is too naive. I am currently reworking things to be more robust and less coupled.

sinclairnick avatar Aug 27 '23 03:08 sinclairnick