From a07c8e3fd9ad15ddce87ef5d4c7f14639c7aca8e Mon Sep 17 00:00:00 2001 From: Giles Roadnight Date: Tue, 10 May 2022 13:47:28 +0100 Subject: [PATCH] change slashes --- README.MD | 2 +- src/helpers/insert-code.helper.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.MD b/README.MD index 6e2223e..a5c5cb1 100644 --- a/README.MD +++ b/README.MD @@ -363,7 +363,7 @@ export function (){ Insert code can also be performed in code: -[//]: # (ts-command-line-args_readme-generation_insertCodeBelow file="src\example\insert-code.example.ts" codeComment="typescript" ) +[//]: # (ts-command-line-args_readme-generation_insertCodeBelow file="src/example/insert-code.example.ts" codeComment="typescript" ) ```typescript async function insertSampleCode() { // this function is inserted into markdown from a ts file using insertCode diff --git a/src/helpers/insert-code.helper.ts b/src/helpers/insert-code.helper.ts index 15d1d86..234ec11 100644 --- a/src/helpers/insert-code.helper.ts +++ b/src/helpers/insert-code.helper.ts @@ -110,7 +110,7 @@ async function loadLines( ); } const codeCommentResult = codeCommentRegExp.exec(result.line); - const partialPath = partialPathResult[1]; + const partialPath = normalize(partialPathResult[1]); const filePath = normalize( isAbsolute(partialPath) ? partialPath : join(dirname(targetFilePath), partialPathResult[1]),