We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4614b1 commit a5bf023Copy full SHA for a5bf023
lib/graphql/repoQuestions.tsx
@@ -1,9 +1,8 @@
1
-//const url = "https://raw.githubusercontent.com/Ditectrev/Microsoft-Azure-AZ-900-Microsoft-Azure-Fundamentals-Exam-Questions-Answers/main/README.md";
2
-
3
const scrapeQuestions = (markdownText: string) => {
4
const regex =
5
- /### (.*?)\s*\n\n((?:\!\[.*?\]\(.*?\)\s*\n\n)*?)((?:- \[(?:x| )\] .*?\n)+)/gs;
6
- const optionsRegex = /- \[(x| )\] (.*?)(?=\n- \[|$)/g;
+ /### (.*?)\s*\r?\n\r?\n((?:\!\[.*?\]\(.*?\)\s*\r?\n\r?\n)*?)((?:- \[(?:x| )\] .*?\r?\n)+)/gs;
+
+ const optionsRegex = /- \[(x| )\] (.*?)(?=\r?\n- \[|$)/g;
7
const imageRegex = /\!\[(.*?)\]\((.*?)\)/g;
8
const questions = [];
9
let match;
0 commit comments