소스 검색

Fix ArtDeco test and add one more case for extraction of timespan

jherve 1 년 전
부모
커밋
38a771d27b
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 0
      src/LinkedIn/Profile/WorkExperience.purs
  2. 2 2
      test/ArtDecoCard.purs

+ 1 - 0
src/LinkedIn/Profile/WorkExperience.purs

@@ -83,6 +83,7 @@ extractContractType = case _ of
 
 extractTimeSpan ∷ UIElement → Maybe TimeSpan
 extractTimeSpan = case _ of
+  UITimeSpan s -> Just s
   UIDotSeparated (UITimeSpan s) _ -> Just s
   _ -> Nothing
 

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 2 - 2
test/ArtDecoCard.purs