1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-12-02 20:22:52 +00:00

update screenshots and fix some small issues

This commit is contained in:
Laura
2025-11-30 23:18:17 +01:00
parent 19243d74ea
commit 98e81f5c48
5 changed files with 3 additions and 2 deletions

BIN
.github/chat.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 179 KiB

After

Width:  |  Height:  |  Size: 177 KiB

BIN
.github/files.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 175 KiB

After

Width:  |  Height:  |  Size: 217 KiB

BIN
.github/images.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 540 KiB

After

Width:  |  Height:  |  Size: 544 KiB

View File

@@ -6,6 +6,7 @@ var cleaner = strings.NewReplacer(
"", "-", "", "-",
"—", "-", "—", "-",
"", "-", "", "-",
"•", "-",
"“", "\"", "“", "\"",
"”", "\"", "”", "\"",

View File

@@ -92,7 +92,7 @@
} }
function parse(markdown) { function parse(markdown) {
const starts = (markdown.match(/^FILE\s+"([^"]+)"(?:\s+LINES\s+\d+)?\s*\r?\n<<CONTENT>>\s*$/gm) || []).length, const starts = (markdown.match(/^ ?FILE\s+"([^"]+)"(?:\s+LINES\s+\d+)?\s*\r?\n<<CONTENT>>\s*$/gm) || []).length,
ends = (markdown.match(/^<<END(?:ING)?>>$/gm) || []).length; ends = (markdown.match(/^<<END(?:ING)?>>$/gm) || []).length;
if (starts !== ends) { if (starts !== ends) {
@@ -102,7 +102,7 @@
const files = [], const files = [],
table = {}; table = {};
markdown = markdown.replace(/^FILE\s+"([^"]+)"(?:\s+LINES\s+(\d+))?\s*\r?\n<<CONTENT>>\s*\r?\n([\s\S]*?)\r?\n<<END(ING)?>>$/gm, (_a, name, _b, content, ending) => { markdown = markdown.replace(/^ ?FILE\s+"([^"]+)"(?:\s+LINES\s+(\d+))?\s*\r?\n<<CONTENT>>\s*\r?\n([\s\S]*?)\r?\n<<END(ING)?>>$/gm, (_a, name, _b, content, ending) => {
const index = files.length, const index = files.length,
id = generateID(); id = generateID();