I've updated the Gruntfile to include your suggestions about using regex. I also used your regex for the version from jsdoc, to get rid of all split() calls. I played around with being fairly flexible with the config.required_jsdoc_version, but decided in the end to only allow "3", "3.2", or "3.2.2", for example.