diff --git a/lib/graphql/repoQuestions.tsx b/lib/graphql/repoQuestions.tsx index 8006e70..8822753 100644 --- a/lib/graphql/repoQuestions.tsx +++ b/lib/graphql/repoQuestions.tsx @@ -1,6 +1,7 @@ const scrapeQuestions = (markdownText: string) => { const regex = /### (.*?)\s*\r?\n\r?\n((?:\!\[.*?\]\(.*?\)\s*\r?\n\r?\n)*?)((?:- \[(?:x| )\] .*?\r?\n)+)/gs; + const optionsRegex = /- \[(x| )\] (.*?)(?=\r?\n- \[|$)/g; const imageRegex = /\!\[(.*?)\]\((.*?)\)/g; const questions = []; diff --git a/package-lock.json b/package-lock.json index ce4a8e9..30dff12 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10617,9 +10617,9 @@ } }, "node_modules/ws": { - "version": "8.14.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.14.2.tgz", - "integrity": "sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", "dev": true, "engines": { "node": ">=10.0.0"