mirror of
https://github.com/facebook/duckling.git
synced 2024-09-11 21:27:13 +03:00
make duckling time not treat 0:xx and 12:xx ambiguously
Reviewed By: haoxuany Differential Revision: D24929661 fbshipit-source-id: 3858d14ef1655f079daa33d2b159e8cb918a70ac
This commit is contained in:
parent
b23de34b46
commit
58cf66589f
@ -622,7 +622,7 @@ ruleHHMM = Rule
|
||||
(Token RegexMatch (GroupMatch (hh:mm:_)):_) -> do
|
||||
h <- parseInt hh
|
||||
m <- parseInt mm
|
||||
tt $ hourMinute (h < 12) h m
|
||||
tt $ hourMinute (h /= 0 && h < 12) h m
|
||||
_ -> Nothing
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,6 @@ import Data.Text (Text)
|
||||
import Data.Tuple.Extra (both)
|
||||
import Prelude
|
||||
import qualified Data.Time as Time
|
||||
import qualified Data.Time.Calendar.WeekDate as Time
|
||||
import qualified Data.Time.LocalTime.TimeZone.Series as Series
|
||||
|
||||
import Duckling.Dimensions.Types
|
||||
|
Loading…
Reference in New Issue
Block a user