Skip to content

Commit bc0f5ec

Browse files
Merge branch 'main' into feature/sync-works
2 parents 1e964f0 + e4cba8e commit bc0f5ec

File tree

5 files changed

+123
-300
lines changed

5 files changed

+123
-300
lines changed

components/Cookie.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Cookie: FC = () => {
1717
return (
1818
<>
1919
<button
20-
className="w-fit self-center md:absolute bg-white p-2 rounded-2xl md:bottom-1 md:left-1"
20+
className="w-fit self-center md:fixed bg-white p-2 rounded-2xl md:bottom-1 md:left-1"
2121
type="button"
2222
onClick={CookieConsent.showPreferences}
2323
>

lib/exams.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@
7474
"subtitle": "Azure Security Engineer",
7575
"url": "https://raw.githubusercontent.com/Ditectrev/Microsoft-Azure-AZ-500-Azure-Security-Engineer-Practice-Tests-Exams-Questions-Answers/main/README.md"
7676
},
77+
{
78+
"name": "Microsoft Azure AZ-204",
79+
"subtitle": "Developing Solutions for Azure",
80+
"url": "https://raw.githubusercontent.com/Ditectrev/Microsoft-Azure-AZ-204-Developing-Solutions-for-Microsoft-Azure-Practice-Tests-Exams-Question-Answer/main/README.md"
81+
},
7782
{
7883
"name": "Microsoft Azure AZ-800",
7984
"subtitle": "Windows Server Hybrid Administrator",

lib/graphql/repoQuestions.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
31
const scrapeQuestions = (markdownText: string) => {
42
const regex =
5-
/### (.*?)\s*\n\n((?:\!\[.*?\]\(.*?\)\s*\n\n)*?)((?:- \[(?:x| )\] .*?\n)+)/gs;
6-
const optionsRegex = /- \[(x| )\] (.*?)(?=\n- \[|$)/g;
3+
/### (.*?)\s*\r?\n\r?\n((?:\!\[.*?\]\(.*?\)\s*\r?\n\r?\n)*?)((?:- \[(?:x| )\] .*?\r?\n)+)/gs;
4+
5+
const optionsRegex = /- \[(x| )\] (.*?)(?=\r?\n- \[|$)/g;
76
const imageRegex = /\!\[(.*?)\]\((.*?)\)/g;
87
const questions = [];
98
let match;

0 commit comments

Comments
 (0)