Skip to content

Commit

Permalink
Update src/lib/plugins/mdbook-example-import.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Anderson Arboleya <[email protected]>
  • Loading branch information
petertonysmith94 and arboleya authored Nov 25, 2024
1 parent e1e46f1 commit b2112c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/plugins/mdbook-example-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function handleExampleImports(
} else if (node.type === 'text') {
// handle ts-sdk docs example format
const relativePath = dirname.replace('docs/fuels-ts/', '')
filePath = filePath.replace('<<< @./', `${relativePath}/`).replace('<<< @/', '').replace('<<< @', '');
filePath = filePath.replace('<<< @./', `${relativePath}/`).replace(/<<< @\/?/, '');

const pathData = filePath.split('{');
filePath = pathData[0];
Expand Down

0 comments on commit b2112c3

Please sign in to comment.