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:') &&
|
providedPath.includes('enc:') &&
|
||||||
PATH_PATTERN.test(decodeURIComponent(providedPath))
|
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 encIndex = providedPath.indexOf('enc:') + 4;
|
||||||
const coords = polyline
|
const coords = polyline
|
||||||
.decode(providedPath.substring(encIndex))
|
.decode(providedPath.substring(encIndex))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue