Fix +tag-model mixin to check for length of spread arguments

This commit is contained in:
ines 2017-05-21 01:12:30 +02:00
parent 3871157d84
commit b53ed82f0f

View File

@ -169,7 +169,7 @@ mixin tag()
mixin tag-model(...capabs)
- var intro = "To use this functionality, spaCy needs a model to be installed"
- var ext = capabs ? " that supports the following capabilities: " + capabs.join(', ') : ""
- var ext = capabs.length ? " that supports the following capabilities: " + capabs.join(', ') : ""
+tag Requires model
+help(intro + ext + ".").u-color-theme