Skip to content

Commit a9eae1e

Browse files
committed
Attempt fix windows path regex match
1 parent 905825d commit a9eae1e

File tree

1 file changed

+1
-1
lines changed
  • src/electron/frontend/core/components/pages

1 file changed

+1
-1
lines changed

src/electron/frontend/core/components/pages/Page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export class Page extends LitElement {
248248

249249
results.forEach((info) => {
250250
const { file } = info;
251-
const fileName = file.split("/").pop();
251+
const fileName = file.eplace(/\\/g, "/").split("/").pop();
252252
console.log("File name:", fileName);
253253
const [subject, session] = fileName.match(/sub-(.+)_ses-(.+)\.nwb/).slice(1);
254254
console.log("Subject:", subject, "Session:", session);

0 commit comments

Comments
 (0)