瀏覽代碼

Match more liberally

main
Adrian Short 5 年之前
父節點
當前提交
be6796bb7e
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. +6
    -1
      lib/helpers.rb

+ 6
- 1
lib/helpers.rb 查看文件

@@ -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…
取消
儲存