From 4d8061db60c6aefad6134667c20d5c8998355f67 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sun, 21 Jan 2024 22:54:38 -0300 Subject: [PATCH] fix(basic.gblib): Fixes #395 talk with no quotes. --- packages/basic.gblib/services/KeywordsExpressions.ts | 3 +-- packages/basic.gblib/services/SystemKeywords.ts | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/basic.gblib/services/KeywordsExpressions.ts b/packages/basic.gblib/services/KeywordsExpressions.ts index 4f026d0f..6a91c9e1 100644 --- a/packages/basic.gblib/services/KeywordsExpressions.ts +++ b/packages/basic.gblib/services/KeywordsExpressions.ts @@ -966,8 +966,7 @@ export class KeywordsExpressions { // // Uses auto quote if this is a phrase with more then one word. - if (/\s/.test($3) && - ($3.trim().substr(0, 1) !== '`' || $3.trim().substr(0, 1) !== "'")) { + if (!($3.trim().substr(0, 1) === '`' || $3.trim().substr(0, 1) === "'")) { $3 = "`" + $3 + "`"; } return `await dk.talk ({pid: pid, text: ${$3}})`; diff --git a/packages/basic.gblib/services/SystemKeywords.ts b/packages/basic.gblib/services/SystemKeywords.ts index 3443d7d6..64977ff5 100644 --- a/packages/basic.gblib/services/SystemKeywords.ts +++ b/packages/basic.gblib/services/SystemKeywords.ts @@ -657,6 +657,8 @@ export class SystemKeywords { /** * Saves the content of variable into BLOB storage. * + * MSFT uses MD5, see https://katelynsills.com/law/the-curious-case-of-md5. + * * @exaple UPLOAD file. * */ @@ -701,7 +703,7 @@ export class SystemKeywords { const res = await blockBlobClient.uploadFile(localName, { blobHTTPHeaders: { - blobContentMD5: hash + blobContentMD5: hash } });