Starting with Anki 2.1.28 backslashes are now no longer supported,
resulting in the graph view no longer loading on Windows machines.
This change replaces the previous os-specific path separators with
a simple RegEx to match both regular slashes and backslashes.
By supporting both, the add-on should continue to work both on older
versions of Anki that do require backslashes as path separators on
Windows, and on 2.1.28+ where path separators have been unified to
regular slashes.
Starting with Anki 2.1.28 backslashes are now no longer supported, resulting in the graph view no longer loading on Windows machines.
This change replaces the previous os-specific path separators with a simple RegEx to match both regular slashes and backslashes.
By supporting both, the add-on should continue to work both on older versions of Anki that do require backslashes as path separators on Windows, and on 2.1.28+ where path separators have been unified to regular slashes.