module.conf 'require = daw.' check fails on aligned whitespace #132

Open
opened 2026-07-19 05:20:09 +02:00 by michael · 0 comments
Owner

The check for '[lua] require = daw.' in module.conf uses check_contains, which does a literal substring match. module-standard.md's own example format uses aligned whitespace (e.g. 'require = daw..'), which check_contains does not match, producing a false-positive ERROR.

We likely already have a mechanism for this in the primitive check_pattern, which should tolerate whitespace variation. Switch the require-field check from check_contains to check_pattern.

The check for '[lua] require = daw.' in module.conf uses check_contains, which does a literal substring match. module-standard.md's own example format uses aligned whitespace (e.g. 'require = daw.<type>.<id>'), which check_contains does not match, producing a false-positive ERROR. We likely already have a mechanism for this in the primitive check_pattern, which should tolerate whitespace variation. Switch the require-field check from check_contains to check_pattern.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/fragjan#132
No description provided.