Browse Source

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

jherve 1 year ago
parent
commit
38a771d27b
2 changed files with 3 additions and 2 deletions
  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
 

File diff suppressed because it is too large
+ 2 - 2
test/ArtDecoCard.purs