Skip to content

Commit

Permalink
Add character alteration to relative path regex
Browse files Browse the repository at this point in the history
  • Loading branch information
colmose committed May 9, 2017
1 parent c8528c3 commit 9857e0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/build/notice.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function licenses(grunt) {
const licenses = glob.sync(path.join(modulePath, '*LICENSE*'));
const notices = glob.sync(path.join(modulePath, '*NOTICE*'));
packagePaths[packageName] = {
relative: modulePath.replace(/.*\/kibana\//, ''),
relative: modulePath.replace(/.*(\/|\\)kibana(\/|\\)/, ''),
licenses,
notices
};
Expand Down

0 comments on commit 9857e0e

Please sign in to comment.