File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed
test/fixtures/chromium-134-ubuntu Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ function extractVaultFromFile (data) {
9191 {
9292 // attempt 5: chromium 0000056.log on MacOS
9393 // This variant is very similar to attempt 4 but there is the addition of a new metadata field, keyringsMetadata, in the vault.
94- const matches = data . match ( / " K e y r i n g C o n t r o l l e r " : \{ .* ?" v a u l t " : " ( { . * } ) " } , / ) ;
94+ const matches = data . match ( / " K e y r i n g C o n t r o l l e r " : ( \{ .* ?" v a u l t " : " . * ? = \\ " \} " \} ) / ) ;
9595 if ( matches && matches . length ) {
9696 try {
9797 const keyringControllerStateFragment = matches [ 1 ] ;
Original file line number Diff line number Diff line change @@ -44,6 +44,12 @@ const FIXTURES = [
4444 'slight escape bracket joy globe bring teach exact mango mansion injury category' ,
4545 passphrase : 'password' ,
4646 } ,
47+ {
48+ path : 'chromium-134-ubuntu/000003.log' ,
49+ mnemonic :
50+ 'live pupil slab senior boy release lyrics shaft lazy renew potato simple' ,
51+ passphrase : 'correct horse battery staple' ,
52+ } ,
4753]
4854
4955const VAULTS = [
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ function extractVaultFromFile(data) {
9898 {
9999 // attempt 5: chromium 0000056.log on MacOS
100100 // This variant is very similar to attempt 4 but there is the addition of a new metadata field, keyringsMetadata, in the vault.
101- var _matches3 = data.match(/"KeyringController":\{.*?"vault":"({.*})"}, /);
101+ var _matches3 = data.match(/"KeyringController":( \{.*?"vault":".*?=\\"\}"\}) /);
102102 if (_matches3 && _matches3.length) {
103103 try {
104104 var _keyringControllerStateFragment = _matches3[1];
You can’t perform that action at this time.
0 commit comments