Skip to content

Getting errors related to invalid Regular Expressions #12

@FurterFrenzy

Description

@FurterFrenzy

When attempting to run, getting thrown the error below. I have gone through your code and i think it may be in your sanitizeFileName function. Please have a look and would LOVE a fix. This app looks like exactly what i need!

something went wrong
SyntaxError: Invalid regular expression: /???/: Nothing to repeat
at new RegExp ()
at getCurrentGameInfo (C:\snapshot\Switch-Backup-Rename\utils\filter-helpers.js:0:0)
at getGamesInfos.then.fs.readdirSync.forEach.file (C:\snapshot\Switch-Backup-Rename_switch-backup-rename.js:0:0)
at Array.forEach ()
at getGamesInfos.then.gamesInfos (C:\snapshot\Switch-Backup-Rename_switch-backup-rename.js:0:0)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (pkg/prelude/bootstrap.js:1308:13)
at startup (internal/bootstrap/node.js:274:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:608:3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions