Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
files.forEach(file => {
const segments = file.split(path.sep)
data.push({
file: file,
source: 'Google',
author: 'Google',
name: segments[segments.length - 1].replace(/^ic_/, '').replace(/_24px\.svg$/, '').replace(/[-_]/g, ' '),
category: segments[segments.length - 4],
version: 'Google ' + require('material-design-icons/package.json').version
})
})
files.forEach(file => {
const segments = file.split(path.sep)
data.push({
file: file,
category: segments[segments.length - 4],
source: 'Google',
author: 'Google',
version: 'Google ' + require('material-design-icons/package.json').version,
name: segments[segments.length - 1].replace(/^ic_/, '').replace(/_24px\.svg$/, '').replace(/[-_]/g, ' ')
})
})