nl_tokens: version is a string : v8 . 10 - 10 Dubnium - lts / * etc returns a boolean versionOnly : true will _not_ match placeholder strings for current versions such as stable
pl_tokens: function ( version , newVersion , newCodeName , versionOnly = false ) { let matches = [ ` ${ newCodeName } ` , newCodeName , newVersion ] // eslint-disable-line const tags = [ 'node' , 'stable' , 'lts/\\*' ] if ( ! versionOnly ) { matches = matches . concat ( tags ) } const overallResult = ! ! matches . find ( ( match ) => { // first regex matches in array form ('- 10'), second regex matches the inline form ('10') return ! ! ( <mask> . match ( RegExp ( ` ${ match } ` , 'i' ) ) || version . match ( RegExp ( ` ${ match } ` , 'i' ) ) ) } ) return overallResult }