mirror of
https://github.com/sharevb/it-tools.git
synced 2026-12-04 18:35:09 +03:00
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:
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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user