summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2014-07-19 11:01:02 +0100
committerChristopher Baines <cb15g11@soton.ac.uk>2014-07-19 14:22:13 +0100
commit7ba959a94342f4a6c3745441db1454bc0b6bb366 (patch)
treec3212c0022e20524cf9110654ec317cb5e88248e
parentda2b1f9402aa5db9e31425d7a12499c7ef6adfe4 (diff)
downloadleaflet-soton-7ba959a94342f4a6c3745441db1454bc0b6bb366.tar
leaflet-soton-7ba959a94342f4a6c3745441db1454bc0b6bb366.tar.gz
Improve missing ref detection
-rwxr-xr-xcreate-data.js5
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([