From be6796bb7e454e631f47fa180e7f65200c8258d5 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Mon, 24 Sep 2018 11:43:23 +0100 Subject: [PATCH] Match more liberally --- lib/helpers.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/helpers.rb b/lib/helpers.rb index 22a7302..1d29c0d 100644 --- a/lib/helpers.rb +++ b/lib/helpers.rb @@ -9,7 +9,7 @@ def cleanup(s) s.sub!('Not Available', '') s.sub!('Not Applicable', '') s = "#{s}" if s.match(/(approve|grant|permitted)/i) - s = "#{s}" if s.match(/refuse/i) + s = "#{s}" if s.match(/refus/i) s end @@ -20,3 +20,8 @@ end def authority_url(authority_name) "/authorities/#{slug(authority_name)}/" end + +def normalise_decision(d) + # https://schemas.opendata.esd.org.uk/PlanningApplications/LocalOpenDataIncentiveSchemePlanningApplicationsSchemaGuidance.pdf + +end