Skip to content

Commit

Permalink
fix: file rule
Browse files Browse the repository at this point in the history
  • Loading branch information
117649 committed Nov 14, 2024
1 parent b3cd7e3 commit 9b9415a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resource/modules/paneSession.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ this.paneSession = {
},

filenames: {
previous: /^previous.jsonlz4$/,
recovery: /^recovery.jsonlz4$/,
recoveryBackup: /^recovery.baklz4$/,
previous: /^previous.json(lz4)$/,
recovery: /^recovery.json(lz4)$/,
recoveryBackup: /^recovery.bak(lz4)$/,
upgrade: /^upgrade.jsonlz4-[0-9]{14}$/,
tabMixPlus: /^tabmix_sessions-[0-9]{4}-[0-9]{2}-[0-9]{2}.rdf$/,
manual: /^tabGroups-manual-[0-9]{8}-[0-9]{6}.json(lz4)?$/,
Expand Down Expand Up @@ -521,7 +521,7 @@ this.paneSession = {
}

let p = aFile.path || aFile;
window.IOUtils.readUTF8(p, p.match(".(bak|json)lz4")[0] ? { decompress: true } : null).then(async (savedState) => {
window.IOUtils.readUTF8(p, p.match(".(bak|json)lz4")?.[0] ? { decompress: true } : null).then(async (savedState) => {

this.manualAction = aManualAction;

Expand Down

0 comments on commit 9b9415a

Please sign in to comment.