Skip to content

Commit 647ffe8

Browse files
Merge pull request eduardconstantin#116 from eduardconstantin/feat/add-new-exams
Feat/add new exams
2 parents d1d509f + f4fb03a commit 647ffe8

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,21 @@
1919
"subtitle": "Microsoft Azure Administrator",
2020
"url": "https://raw.githubusercontent.com/Ditectrev/Microsoft-Azure-AZ-104-Microsoft-Azure-Administrator-Practice-Tests-Exams-Questions-Answers/main/README.md"
2121
},
22+
{
23+
"name": "Microsoft Azure AZ-204",
24+
"subtitle": "Developing Solutions for Azure",
25+
"url": "https://raw.githubusercontent.com/Ditectrev/Microsoft-Azure-AZ-204-Developing-Solutions-for-Microsoft-Azure-Practice-Tests-Exams-Question-Answer/main/README.md"
26+
},
2227
{
2328
"name": "Microsoft Azure AZ-800",
2429
"subtitle": "Windows Server Hybrid Administrator",
2530
"url": "https://raw.githubusercontent.com/Ditectrev/Microsoft-Azure-AZ-800-Windows-Server-Hybrid-Administrator-Practice-Tests-Exams-Questions-Answers/main/README.md"
2631
},
32+
{
33+
"name": "Microsoft Azure SC-900",
34+
"subtitle": "Microsoft Security, Compliance, and Identity Fundamentals",
35+
"url": "https://raw.githubusercontent.com/Ditectrev/Microsoft-SC-900-Microsoft-Security-Compliance-and-Identity-Fundamentals-Practice-Tests-Exams-QA/main/README.md"
36+
},
2737
{
2838
"name": "Microsoft Azure AZ-500",
2939
"subtitle": "Microsoft Azure Security Engineer",

lib/graphql/repoQuestions.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
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+
const optionsRegex = /- \[(x| )\] (.*?)(?=\r?\n- \[|$)/g;
75
const imageRegex = /\!\[(.*?)\]\((.*?)\)/g;
86
const questions = [];
97
let match;

0 commit comments

Comments
 (0)