Fixing getPartialId function documentation so it works out of the box. I've kept the filePath variable as you've required the path library throughout the documentation and this means that the function reads more clearly.
It should possibly use the regex from utils/partials.js but I'll leave that to your discretion.
/* from README.md */
(/\/([^/]+\/[^/]+)\.[^.]+$/)
/* from utils/partials.js */
(/\/([^\/]+\/[^\/]+)\.[^\.]+$/)
Fixing getPartialId function documentation so it works out of the box. I've kept the
filePath
variable as you've required thepath
library throughout the documentation and this means that the function reads more clearly.It should possibly use the regex from
utils/partials.js
but I'll leave that to your discretion.