You could have a single regular expression like ``/^\d+\.\d+\.\d+$/`` instead checking each part individually. (Similar to what you have below to check what jsdoc returns.)