Skip to content

Commit

Permalink
fix(nx-cloud): updated regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini committed Jul 31, 2024
1 parent f5a530b commit a0b407e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/documentation/create-embeddings/src/main.mts
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ function removeTitleDescriptionFromHeading(
if (!inputString) {
return null;
}
const titleMatch = inputString.match(/title:\s*([^description]*)/);
const titleMatch = inputString.match(/title:\s*(.+?)(?=\s*description:)/);
if (titleMatch) {
const title = titleMatch[1].trim();
return title.replace(`{% highlightColor="green" %}`, '').trim();
Expand Down

0 comments on commit a0b407e

Please sign in to comment.