Fix: fix tests

This commit is contained in:
Pieter Vander Vennet 2025-06-19 02:51:33 +02:00
parent 2afca781b9
commit 339dcc5c09
3 changed files with 3 additions and 3 deletions

View file

@ -79,7 +79,6 @@
"source": {
"geoJson": "https://maproulette.org/api/v2/challenge/view/39519"
},
"calculatedTags": [
"_closest_osm_poi=closest(feat)('atm')?.properties?.id",
"_closest_osm_poi_distance=Math.round(distanceTo(feat)(feat.properties._closest_osm_poi))",

View file

@ -94,10 +94,10 @@ export default class TagApplyViz implements AutoAction, SpecialVisualization {
/**
* Parses a tag specification
*
* TagApplyButton.parseTagSpec("key=value;key0=value0") // => [["key","value"],["key0","value0"]]
* TagApplyViz.parseTagSpec("key=value;key0=value0") // => [["key","value"],["key0","value0"]]
*
* // Should handle escaped ";"
* TagApplyButton.parseTagSpec("key=value;key0=value0\\;value1") // => [["key","value"],["key0","value0;value1"]]
* TagApplyViz.parseTagSpec("key=value;key0=value0\\;value1") // => [["key","value"],["key0","value0;value1"]]
*/
private static parseTagSpec(spec: string): [string, string][] {
const tgsSpec: [string, string][] = []

View file

@ -26,6 +26,7 @@ function detectInCodeUnwrapped(forbidden: string, reason: string): Promise<void>
"assets",
"vendor",
".idea/",
"android/"
]
const command =