浏览代码

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

jherve 1 年之前
父节点
当前提交
8b5ab7df89
共有 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