Skip to content

Commit

Permalink
chore: fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Nov 28, 2023
1 parent 108a321 commit 65febe7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extractExamples.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ Array.from(codeBlocks).forEach(({ groups }, index) => {
code
.match(importRegex)
?.join('\n')
.replace(/from ('|")cachified('|");/, 'from $1../src/index$2;') || '';
.replace(
/from ('|")@epic-web\/cachified('|");/,
'from $1../src/index$2;',
) || '';

if (index === 3) {
imports = imports.replace(/from ('|")redis('|");/, 'from $1redis4$2;');
Expand Down

0 comments on commit 65febe7

Please sign in to comment.