Skip to content

Commit

Permalink
Merge pull request #370 from sasjs/allanbowe-patch-1
Browse files Browse the repository at this point in the history
fix: enable embedded LFs in JS STP vars
  • Loading branch information
allanbowe authored Nov 7, 2023
2 parents 1fc1431 + 068edfd commit 28222ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/src/controllers/internal/createJSProgram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const createJSProgram = async (
) => {
const varStatments = Object.keys(vars).reduce(
(computed: string, key: string) =>
`${computed}const ${key} = '${vars[key]}';\n`,
`${computed}const ${key} = \`${vars[key]}\`;\n`,
''
)

Expand Down
5 changes: 2 additions & 3 deletions api/src/utils/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ export const generateFileUploadSasCode = async (
let fileCount = 0
const uploadedFiles: UploadedFiles[] = []

const sasSessionFolderList: string[] = await listFilesInFolder(
sasSessionFolder
)
const sasSessionFolderList: string[] =
await listFilesInFolder(sasSessionFolder)
sasSessionFolderList.forEach((fileName) => {
let fileCountString = fileCount < 100 ? '0' + fileCount : fileCount
fileCountString = fileCount < 10 ? '00' + fileCount : fileCount
Expand Down

0 comments on commit 28222ad

Please sign in to comment.