From 7ba959a94342f4a6c3745441db1454bc0b6bb366 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 19 Jul 2014 11:01:02 +0100 Subject: Improve missing ref detection --- create-data.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'create-data.js') 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([ -- cgit v1.2.3