The following changes were made by the replace_file_content tool to: /root/aadharbot/gateways.js. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -810,10 +810,10 @@ try { const checkRes = await fetch(requestUrl, { method: 'GET', headers: { 'User-Agent': 'Mozilla/5.0' } }); const pageHtml = await checkRes.text(); - const upiMatches = [...pageHtml.matchAll(/upi://[^"']+/gi)].map(m => m[0]); + const upiMatches = [...pageHtml.matchAll(/upi:\/\/[^"']+/gi)].map(m => m[0]); if (upiMatches.length > 0) { let upiUrl = upiMatches[0]; - if (!upiUrl.startsWith('upi://pay?')) upiUrl = upiUrl.replace(/^upi://[^?]*?/, 'upi://pay?'); + if (!upiUrl.startsWith('upi://pay?')) upiUrl = upiUrl.replace(/^upi:\/\/[^?]*?/, 'upi://pay?'); const QRCode = require('qrcode'); qrBuffer = await QRCode.toBuffer(upiUrl, { type: 'png', width: 400 }); expectedDate = formatDateIST(new Date()); [diff_block_end] Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.