Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function extractVaultFromFile (data) {
{
// attempt 5: chromium 0000056.log on MacOS
// This variant is very similar to attempt 4 but there is the addition of a new metadata field, keyringsMetadata, in the vault.
const matches = data.match(/"KeyringController":\{.*?"vault":"({.*})"},/);
const matches = data.match(/"KeyringController":(\{.*?"vault":".*?=\\"\}"\})/);
if (matches && matches.length) {
try {
const keyringControllerStateFragment = matches[1];
Expand Down
6 changes: 6 additions & 0 deletions app/lib.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ const FIXTURES = [
'slight escape bracket joy globe bring teach exact mango mansion injury category',
passphrase: 'password',
},
{
path: 'chromium-134-ubuntu/000003.log',
mnemonic:
'live pupil slab senior boy release lyrics shaft lazy renew potato simple',
passphrase: 'correct horse battery staple',
},
]

const VAULTS = [
Expand Down
2 changes: 1 addition & 1 deletion bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function extractVaultFromFile(data) {
{
// attempt 5: chromium 0000056.log on MacOS
// This variant is very similar to attempt 4 but there is the addition of a new metadata field, keyringsMetadata, in the vault.
var _matches3 = data.match(/"KeyringController":\{.*?"vault":"({.*})"},/);
var _matches3 = data.match(/"KeyringController":(\{.*?"vault":".*?=\\"\}"\})/);
if (_matches3 && _matches3.length) {
try {
var _keyringControllerStateFragment = _matches3[1];
Expand Down
Binary file added test/fixtures/chromium-134-ubuntu/000003.log
Binary file not shown.
Loading