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:
BIN
.github/chat.png
vendored
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
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
BIN
.github/images.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 540 KiB After Width: | Height: | Size: 544 KiB |
1
clean.go
1
clean.go
@@ -6,6 +6,7 @@ var cleaner = strings.NewReplacer(
|
|||||||
"‑", "-",
|
"‑", "-",
|
||||||
"—", "-",
|
"—", "-",
|
||||||
"–", "-",
|
"–", "-",
|
||||||
|
"•", "-",
|
||||||
|
|
||||||
"“", "\"",
|
"“", "\"",
|
||||||
"”", "\"",
|
"”", "\"",
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user