diff --git a/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/helper/HolidayProvider.scala b/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/helper/HolidayProvider.scala index 7c44030..1ca869b 100644 --- a/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/helper/HolidayProvider.scala +++ b/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/helper/HolidayProvider.scala @@ -280,7 +280,7 @@ class LocalHolidayProvider extends HolidayProvider { val builder = Maps.newTreeMap[String, String]() normalMap.foreach{ case (pt, normalSet) => normalSet.foreach(normal => - if (pt == normal && normal.contains(pt) || !normal.contains(pt)) { + if (!builder.containsKey(pt) || builder.containsKey(pt) && pt == normal) { builder.put(pt, normal) } )