From 2c8a693da54be38b8f0b6dfd94ac83e6fc91aa08 Mon Sep 17 00:00:00 2001 From: Hesham Salman Date: Thu, 30 Apr 2020 09:28:16 -0400 Subject: [PATCH] Support directories and filenames with spaces --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 950ff03..8765173 100644 --- a/index.js +++ b/index.js @@ -34,6 +34,8 @@ const getPullRequestChangedFiles = async (octokit) => { filesChanged = filesChanged.filter(file => !file.startsWith(path)) ); } + + filesChanged.map(filename => filename.replace(/\s/g, '\\ ')); return filesChanged.filter(file => file.endsWith('.swift')); };