lib/prompt-filters.js
function (input) {
    debug('requiredTextFilter(%s)', input);
    if (_.isString(input) && !_.isEmpty(input)) {
      if (_.startsWith(input, 'VERSION-')) {
        return input.substr(8);
      }
      return input;
    }
    if (_.isNumber(input)) return '' + input;
    return undefined;
  }
function (input) {
    debug('requiredTextFilter(%s)', input);
    if (_.isString(input) && !_.isEmpty(input)) {
      if (_.startsWith(input, 'VERSION-')) {
        return input.substr(8);
      }
      return input;
    }
    if (_.isNumber(input)) return '' + input;
    return undefined;
  }
function ( input ) { debug ( 'requiredTextFilter(%s)' , input ) ; if ( _ . isString ( input ) && ! _ . isEmpty ( input ) ) { if ( _ . startsWith ( input , 'VERSION-' ) ) { return input . substr ( 8 ) ; } return input ; } if ( _ . isNumber ( input ) ) return '' + input ; return undefined ; }
Given some none empty text return it.
If the text starts with "VERSION-", remove that text
This is a stupid hack because Yeoman is messing
with our numeric options.
If we receive a number convert it to a string and return it.
Otherwise return undefined.

@param {(string|boolean|undefined|null)} input
@returns {(string|undefined)}
Given some none empty text return it . If the text starts with VERSION - remove that text This is a stupid hack because Yeoman is messing with our numeric options . If we receive a number convert it to a string and return it . Otherwise return undefined .