|
1 | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
2 | 2 | // Licensed under the MIT License. |
| 3 | +declare var require: any |
3 | 4 |
|
4 | 5 | import { IMergedExtractorConfiguration, BaseMergedExtractor, IMergedParserConfiguration, BaseMergedParser } from "../baseMerged"; |
5 | 6 | import { BaseDateExtractor, BaseDateParser } from "../baseDate"; |
@@ -27,7 +28,7 @@ import { DateTimeOptions } from "../dateTimeRecognizer"; |
27 | 28 | import { IDateTimeParser, DateTimeParseResult } from "../parsers"; |
28 | 29 | import { Constants, TimeTypeConstants } from "../constants"; |
29 | 30 | import { DateTimeFormatUtil, DateUtils, DateTimeResolutionResult, StringMap } from "../utilities"; |
30 | | -import isEqual = require('lodash.isequal'); |
| 31 | +const lodash = require('lodash'); |
31 | 32 |
|
32 | 33 | class ChineseMergedExtractorConfiguration implements IMergedExtractorConfiguration { |
33 | 34 | readonly dateExtractor: BaseDateExtractor |
@@ -499,7 +500,7 @@ export class ChineseFullMergedParser extends BaseMergedParser { |
499 | 500 |
|
500 | 501 | let futureValues = Array.from(this.getValues(future)).sort(); |
501 | 502 | let pastValues = Array.from(this.getValues(past)).sort(); |
502 | | - if (isEqual(futureValues, pastValues)) { |
| 503 | + if (lodash.isEqual(futureValues, pastValues)) { |
503 | 504 | if (pastValues.length > 0) { |
504 | 505 | this.addResolutionFieldsAny(result, Constants.ResolveKey, past); |
505 | 506 | } |
|
0 commit comments