chore: lint + comment
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
parent
fd5737044a
commit
c72e44b3fd
2 changed files with 8 additions and 8 deletions
|
|
@ -162,7 +162,7 @@ const extractPathsFromQuery = (query, transformer) => {
|
|||
providedPath.includes('enc:') &&
|
||||
PATH_PATTERN.test(decodeURIComponent(providedPath))
|
||||
) {
|
||||
// +4 because enc: are 4 characters, everything after enc: is considered to be part of the polyline
|
||||
// +4 because 'enc:' is 4 characters, everything after 'enc:' is considered to be part of the polyline
|
||||
const encIndex = providedPath.indexOf('enc:') + 4;
|
||||
const coords = polyline
|
||||
.decode(providedPath.substring(encIndex))
|
||||
|
|
|
|||
|
|
@ -174,13 +174,13 @@ describe('Static endpoints', function () {
|
|||
|
||||
describe('encoded path', function () {
|
||||
testStatic(
|
||||
prefix,
|
||||
'auto/20x20',
|
||||
'png',
|
||||
200,
|
||||
2,
|
||||
/image\/png/,
|
||||
'?path='+decodeURIComponent('enc:{{biGwvyGoUi@s_A|{@'),
|
||||
prefix,
|
||||
'auto/20x20',
|
||||
'png',
|
||||
200,
|
||||
2,
|
||||
/image\/png/,
|
||||
'?path=' + decodeURIComponent('enc:{{biGwvyGoUi@s_A|{@'),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue