選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

12 行
289 B

  1. const re = /^dotenv_config_(encoding|path|debug|override|DOTENV_KEY)=(.+)$/
  2. module.exports = function optionMatcher (args) {
  3. return args.reduce(function (acc, cur) {
  4. const matches = cur.match(re)
  5. if (matches) {
  6. acc[matches[1]] = matches[2]
  7. }
  8. return acc
  9. }, {})
  10. }