Skip to content

Commit

Permalink
Updated replace to replaceAll ocurrences in url patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopaniego committed Nov 19, 2024
1 parent 05fd71d commit d230a52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/api-inference/scripts/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ TASKS.forEach((task) => {
};
DATA.snippets[task] = SNIPPETS_TEMPLATE({
taskSnippets,
taskSnakeCase: task.replace("-", "_"),
taskAttached: task.replace("-", ""),
taskSnakeCase: task.replaceAll("-", "_"),
taskAttached: task.replaceAll("-", ""),
});
});

Expand Down Expand Up @@ -511,8 +511,8 @@ function fetchChatCompletion() {
};
DATA.snippets[task.name] = SNIPPETS_TEMPLATE({
taskSnippets,
taskSnakeCase: baseName.replace("-", "_"),
taskAttached: baseName.replace("-", ""),
taskSnakeCase: baseName.replaceAll("-", "_"),
taskAttached: baseName.replaceAll("-", ""),
});

});
Expand Down

0 comments on commit d230a52

Please sign in to comment.