function main() {
  chrome.storage.sync.get('fileRegex', function (data) {
    var regex = new RegExp(data.fileRegex)

    showAllFiles()
      .then(() => toggleFiles(getFileList(), regex))
      .then((files) => {
        console.log(
          'The following files were affected by the filter: `'
            .concat(data.fileRegex)
            .concat('`'),
          '\n------\n',
          files.join('\n ')
        )
        chrome.runtime.sendMessage({ message: 'finishedToggle' })
      })
  })
}
/**
 * main: triggers the filtering of files within the current patch set.
 */
triggers the filtering of files within the current patch set.
triggers the filtering of files within the current patch set .
function main() {
  chrome.storage.sync.get('fileRegex', function (data) {
    var regex = new RegExp(data.fileRegex)
    showAllFiles()
      .then(() => toggleFiles(getFileList(), regex))
      .then((files) => {
        console.log(
          'The following files were affected by the filter: `'
            .concat(data.fileRegex)
            .concat('`'),
          '\n------\n',
          files.join('\n ')
        )
        chrome.runtime.sendMessage({ message: 'finishedToggle' })
      })
  })
}
function main ( ) { chrome . storage . sync . get ( 'fileRegex' , function ( data ) { var regex = new RegExp ( data . fileRegex ) showAllFiles ( ) . then ( ( ) => toggleFiles ( getFileList ( ) , regex ) ) . then ( ( files ) => { console . log ( 'The following files were affected by the filter: `' . concat ( data . fileRegex ) . concat ( '`' ) , '\n------\n' , files . join ( '\n ' ) ) chrome . runtime . sendMessage ( { message : 'finishedToggle' } ) } ) } ) }
main: triggers the filtering of files within the current patch set.
main : triggers the filtering of files within the current patch set .