From f2a02d4f42727c7998f4e496431f2854d60c1f99 Mon Sep 17 00:00:00 2001 From: Samer Albahra Date: Sun, 2 Aug 2015 00:06:28 -0500 Subject: [PATCH] Correctly support Weather Underground unique IDs --- routes/weather.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/weather.js b/routes/weather.js index 6f6d931..d86ca25 100644 --- a/routes/weather.js +++ b/routes/weather.js @@ -5,7 +5,7 @@ var http = require( "http" ), // Define regex filters to match against location filters = { gps: /^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),\s*[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/, - pws: /^(?:pws|icao):/, + pws: /^(?:pws|icao|zmw):/, url: /^https?:\/\/([\w\.-]+)(:\d+)?(\/.*)?$/, time: /(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})([+-])(\d{2})(\d{2})/, time12: /(\d{1,2}):(\d{2})\s(am|pm)/i,