소스 검색

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

불러오는 중...
취소
저장