ソースを参照

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