diff --git a/Vue/Rechercheparcarte/index.php b/Vue/Rechercheparcarte/index.php index 01e0209..e640d22 100755 --- a/Vue/Rechercheparcarte/index.php +++ b/Vue/Rechercheparcarte/index.php @@ -80,8 +80,9 @@ inputField.addEventListener('cut', e => e.preventDefault()); function detectScanType(value) { // QR code commence généralement par un format spécifique // Ajustez cette logique selon votre format de QR code - if (value.startsWith('QR') || value.includes('|') || value.length > 50) { - return 'qr'; + // if (value.startsWith('QR') || value.includes('|') || value.length > 50) { + if (value.endsWith('qr') { + return 'qr'; } return 'nfc'; }