You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I was trying to do the equivalent of this PR in the Elm track, but I ran into an issue.
We have concepts named basics-1 and basics-2, which makes configlet generate break.
For the concept exercise lucians-luscious-lasagna, I wrote the introduction.md.tpl as
kebab-case string: a string that contains only characters in the range [a-z0-9], optionally separated by dashes (e.g. "two-fer"). It must match the regular expression: ^[a-z0-9]+(-[a-z0-9]+)*$
So configlet generate should support a concept slug that contains a digit in the placeholder.
A concept slug is allowed to contain digits [1]:
The `concepts[].slug` value must be a kebab-case string with length <= 255
[...]
kebab-case string: a string that [...] must match the regular expression: `^[a-z0-9]+(-[a-z0-9]+)*$`
but `configlet generate` did not support such a slug.
With this commit, `configlet generate` now behaves as expected for an
`introduction.md.tpl` file like:
# Introduction
%{concept: basics-1}
[1] https://github.com/exercism/docs/blob/ba3eba34d334/building/configlet/lint.md#glossaryFixes: #663
Hi!
I was trying to do the equivalent of this PR in the Elm track, but I ran into an issue.
We have concepts named
basics-1
andbasics-2
, which makesconfiglet generate
break.For the concept exercise
lucians-luscious-lasagna
, I wrote theintroduction.md.tpl
asBut after generation the
introduction.md
isThe culprit probably is
configlet/src/generate/generate.nim
Lines 100 to 102 in d31e569
It seems that it would be easy enough to support numbers, is that an option?
The text was updated successfully, but these errors were encountered: