French bitlocker fix (#5832)

Signed-off-by: si458 <simonsmith5521@gmail.com>

Simon Smith committed Feb 19, 2024 at 23:16 UTC a77d40505ad3103ea653e8314657f78599c2d2dc
1 file changed +5 -3
agents/modules_meshcore/computer-identifiers.js
+5 -3
@@ -447,12 +447,14 @@ function windows_volumes()
447 var abc = lines[x].trim();
448 var englishidpass = (abc !== '' && abc.includes('Numerical Password:')); // English ID
449 var germanidpass = (abc !== '' && abc.includes('Numerisches Kennwort:')); // German ID
450 + var frenchidpass = (abc !== '' && abc.includes('Mot de passe num')); // French ID
451 var englishpass = (abc !== '' && abc.includes('Password:') && !abc.includes('Numerical Password:')); // English Password
452 var germanpass = (abc !== '' && abc.includes('Kennwort:') && !abc.includes('Numerisches Kennwort:')); // German Password
452 - if (englishidpass || germanidpass || englishpass || germanpass) {
453 + var frenchpass = (abc !== '' && abc.includes('Mot de passe :') && !abc.includes('Mot de passe num')); // French Password
454 + if (englishidpass || germanidpass || frenchidpass|| englishpass || germanpass || frenchpass) {
455 var nextline = lines[x + 1].trim();
454 - if (x + 1 < lines.length && (nextline !== '' && nextline.startsWith('ID:'))) {
455 - identifier = nextline.replace('ID:','').trim();
456 + if (x + 1 < lines.length && (nextline !== '' && (nextline.startsWith('ID:') || nextline.startsWith('ID :')) )) {
457 + identifier = nextline.replace('ID:','').replace('ID :', '').trim();
458 foundIDMarkedLine = true;
459 }else if (x + 1 < lines.length && nextline !== '') {
460 password = nextline;