feller-prj / extractor-project

forked from iaextractor
Other
75 stars 22 forks source link

Allow user to choose which character to use to replace invalid characters #37

Open garoxas opened 4 years ago

garoxas commented 4 years ago

On versions pre-1.0.0 invalid characters are replaced by -, however in newer versions it's now using _

Implementation in download.js below

  const native = async (options, callback) => {
    options.filename = options.filename
      .replace(/[`~!@#$%^&*()|+=?;:'",<>{}[\]\\/]/gi, '_')
      .replace(/[\\/:*?"<>|]/g, '_')
      .substring(0, 240);

I would like to propose that users can choose which character they want to use in the option menu as personally I prefer using -