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:
@@ -92,7 +92,7 @@
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
if (starts !== ends) {
|
||||
@@ -102,7 +102,7 @@
|
||||
const files = [],
|
||||
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,
|
||||
id = generateID();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user