From 9857e0e4a2de174172c8c1aefa7fb5ab92830c3c Mon Sep 17 00:00:00 2001 From: Colm O'Shea Date: Tue, 9 May 2017 20:49:22 +0100 Subject: [PATCH] Add character alteration to relative path regex --- tasks/build/notice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/build/notice.js b/tasks/build/notice.js index b74989ead4f01cb..825a390219e6769 100644 --- a/tasks/build/notice.js +++ b/tasks/build/notice.js @@ -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 };