浏览代码

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

正在加载...
取消
保存