mirror of
https://github.com/OrcaSlicer/OrcaSlicer_WIKI.git
synced 2026-05-17 08:35:46 +03:00
Expand list pattern matching in checklist validation (#135)
Updated the regex to match all list patterns (e.g., '- ', '* ', '1. ') instead of only checklist items. This allows the workflow to validate indentation for all list types, not just checklists.
This commit is contained in:
@@ -70,9 +70,9 @@ jobs:
|
||||
lines.forEach((line, index) => {
|
||||
const lineNum = index + 1;
|
||||
|
||||
// Match checklist patterns: "- [ ]", "- [x]", "[number]. [ ]", etc.
|
||||
const checklistPattern = /^(\s*)(?:[-*]|\d+\.)\s+\[[\sx]\]/;
|
||||
const match = line.match(checklistPattern);
|
||||
// Match ALL list patterns: "- ", "* ", "[number]. "
|
||||
const listPattern = /^(\s*)(?:[-*]|\d+\.)\s+/;
|
||||
const match = line.match(listPattern);
|
||||
|
||||
if (match) {
|
||||
const indentation = match[1].length;
|
||||
|
||||
Reference in New Issue
Block a user