diff options
author | Christopher Baines <cb15g11@soton.ac.uk> | 2014-07-19 11:01:02 +0100 |
---|---|---|
committer | Christopher Baines <cb15g11@soton.ac.uk> | 2014-07-19 14:22:13 +0100 |
commit | 7ba959a94342f4a6c3745441db1454bc0b6bb366 (patch) | |
tree | c3212c0022e20524cf9110654ec317cb5e88248e | |
parent | da2b1f9402aa5db9e31425d7a12499c7ef6adfe4 (diff) | |
download | leaflet-soton-7ba959a94342f4a6c3745441db1454bc0b6bb366.tar leaflet-soton-7ba959a94342f4a6c3745441db1454bc0b6bb366.tar.gz |
Improve missing ref detection
-rwxr-xr-x | create-data.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/create-data.js b/create-data.js index 78f1343..9d81765 100755 --- a/create-data.js +++ b/create-data.js @@ -279,7 +279,10 @@ function processBuildingParts(buildingParts, callback) { console.warn("Unexpected ref \"" + part.properties.ref + "\" for room " + part.properties.uri); } } else { - console.warn("Missing ref \"" + expectedRef + "\" for room " + part.properties.uri); + // does it look like a ref (is the first character a number) + if (!isNaN(expectedRef.slice(0, 1))) { + console.warn("Missing ref \"" + expectedRef + "\" for room " + part.properties.uri); + } } async.parallel([ |