Skip to content

Instantly share code, notes, and snippets.

@adambankin
Created December 12, 2014 02:16
Show Gist options
  • Save adambankin/11d8d436dbb8633927aa to your computer and use it in GitHub Desktop.
Save adambankin/11d8d436dbb8633927aa to your computer and use it in GitHub Desktop.
function correctPaths (buildValues) {
var keys = Object.keys(buildValues);
keys.forEach(function (key) {
buildValues[key] = buildValues[key].map(function (path) {
return path.replace(/^example\//, '');
});
});
console.log(buildValues);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment