Browse Source

Match more liberally

main
Adrian Short 5 years ago
parent
commit
be6796bb7e
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      lib/helpers.rb

+ 6
- 1
lib/helpers.rb View File

@@ -9,7 +9,7 @@ def cleanup(s)
s.sub!('Not Available', '')
s.sub!('Not Applicable', '')
s = "<span class=grant>#{s}</span>" if s.match(/(approve|grant|permitted)/i)
s = "<span class=refuse>#{s}</span>" if s.match(/refuse/i)
s = "<span class=refuse>#{s}</span>" 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

Loading…
Cancel
Save