diff options
author | Krasimir Angelov <kangelov@gitlab.com> | 2019-12-11 07:59:37 +0300 |
---|---|---|
committer | Krasimir Angelov <kangelov@gitlab.com> | 2019-12-12 11:49:46 +0300 |
commit | a0fe1ec1de472439430679330b374e1cbe60652e (patch) | |
tree | bb4143741c6fcdf244865895447167cd4fab9352 /shared | |
parent | 860072e9807e8ab8ce6b213f4f72f42d91c1ad70 (diff) |
Fix different issues with slashes
Update code and tests to handle the fact thet API will always return
prefix surrounded with slashes (e.g. `/prefix/`) and source.path with
trailing slash (e.g. `path/to/public/`).
Diffstat (limited to 'shared')
-rw-r--r-- | shared/lookups/new-source-test.gitlab.io.json | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/lookups/new-source-test.gitlab.io.json b/shared/lookups/new-source-test.gitlab.io.json index 0332b6c2..f84fde35 100644 --- a/shared/lookups/new-source-test.gitlab.io.json +++ b/shared/lookups/new-source-test.gitlab.io.json @@ -5,10 +5,10 @@ { "access_control": false, "https_only": false, - "prefix": "/my/pages/project", + "prefix": "/my/pages/project/", "project_id": 123, "source": { - "path": "/group/new-source-test.gitlab.io/public", + "path": "group/new-source-test.gitlab.io/public/", "type": "file" } } |