Skip to content

Commit

Permalink
Fixed parsing of README
Browse files Browse the repository at this point in the history
  • Loading branch information
houmain committed Jun 15, 2024
1 parent dbc697e commit 4761623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CompletionItemProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ function findEnumValues(text: string) {

function parseReadmeMarkdown(text: string) {
text = text.replace(/[\n\r]+/g, "\n");
const chapterOffset = text.search("## Input definition reference");
const chapterEnd = text.indexOf("## Output description", chapterOffset);
const chapterOffset = text.search("### Definition reference");
const chapterEnd = text.indexOf("### Variables", chapterOffset);
const tableOffset = text.indexOf("| **sheet**", chapterOffset);
const lines = text.substring(tableOffset, chapterEnd).trim().split("\n");
const definitions: { [k: string]: Definition } = {};
Expand Down

0 comments on commit 4761623

Please sign in to comment.