Browse Source

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

jherve 2 năm trước cách đây
mục cha
commit
38a771d27b
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  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
 

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 2 - 2
test/ArtDecoCard.purs