Website Structure

This commit is contained in:
supalerk-ar66 2026-01-13 10:46:40 +07:00
parent 62812f2090
commit 71f0676a62
22365 changed files with 4265753 additions and 791 deletions

24
Frontend-Learner/node_modules/strip-indent/index.js generated vendored Normal file
View file

@ -0,0 +1,24 @@
export default function stripIndent(string) {
const match = string.match(/^[ \t]*(?=\S)/gm);
if (!match) {
return string;
}
let minIndent = Number.POSITIVE_INFINITY;
for (const indent of match) {
minIndent = Math.min(minIndent, indent.length);
}
if (minIndent === 0 || minIndent === Number.POSITIVE_INFINITY) {
return string;
}
return string.replace(new RegExp(`^[ \\t]{${minIndent}}`, 'gm'), '');
}
export function dedent(string) {
// Remove all leading and trailing whitespace-only lines
const trimmed = string.replace(/^(?:[ \t]*\r?\n)+|(?:\r?\n[ \t]*)+$/g, '');
return stripIndent(trimmed);
}