Add/update encodeURIComponent to allow for successful path uri encoding (#248)

* Add/update encodeURIComponent to allow for successful path uri encoding

* Breakup line to meet 120 char limit enforced by the tests

* concat string

Co-authored-by: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com>
This commit is contained in:
Draper 2022-01-08 04:27:44 +00:00 committed by GitHub
parent bf37a65a17
commit 7ffcd4d4f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -93,7 +93,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
let filepath = '';
const response = {};
filepath = `${file.file.split('/').slice(0, -1).join('/')}/`;
filepath = encodeURI(filepath);
filepath = encodeURIComponent(filepath);
// Check if all inputs have been configured. If they haven't then exit plugin.
if (