fix(QR Code Generator): Fixed an issue where the text input provided to the terminal QR code wasn't trimming leading/trailing spaces and newlines from the string (#189)

Fix #185
This commit is contained in:
Dark_Phoenix_ authored and ShareVB committed 2025-09-13 10:05:57 +02:00
1 parent 71700b92c6
commit 4b1ca280e4
2 files changed
+2 -26

No files matched your search

@@ -74,7 +74,7 @@ const qrcodeTerminal = computedAsync(() => {
return new Promise<string>((resolve, _reject) => {
try {
qrcodeConsole.setErrorLevel(level);
qrcodeConsole.generate(textValue, { small }, (qrcode: string) => {
qrcodeConsole.generate(textValue.trim(), { small }, (qrcode: string) => {
resolve(qrcode);
});
}