@microsoft/recognizers-text-number
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -43,3 +43,4 @@ import { IParser, ParseResult, ExtractResult } from "@microsoft/recognizers-text"; | ||
private getPointValue(matchStrs); | ||
protected getDigitalValue(digitStr: string, power: number): number; | ||
private skipNonDecimalSeparator(ch, distance, culture); | ||
protected getDigitalValue(digitsStr: string, power: number): number; | ||
} | ||
@@ -46,0 +47,0 @@ export declare class BasePercentageParser extends BaseNumberParser { |
@@ -37,5 +37,5 @@ export declare namespace EnglishNumeric { | ||
const AllFloatRegex: string; | ||
const DoubleWithMultiplierRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+\\.)))\\d+\\.\\d+\\s*(K|k|M|G|T|B|b)(?=\\b)"; | ||
const DoubleExponentialNotationRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+\\.)))(\\d+(\\.\\d+)?)e([+-]*[1-9]\\d*)(?=\\b)"; | ||
const DoubleCaretExponentialNotationRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+\\.)))(\\d+(\\.\\d+)?)\\^([+-]*[1-9]\\d*)(?=\\b)"; | ||
const DoubleWithMultiplierRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+[\\.,])))\\d+[\\.,]\\d+\\s*(K|k|M|G|T|B|b)(?=\\b)"; | ||
const DoubleExponentialNotationRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+[\\.,])))(\\d+([\\.,]\\d+)?)e([+-]*[1-9]\\d*)(?=\\b)"; | ||
const DoubleCaretExponentialNotationRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+[\\.,])))(\\d+([\\.,]\\d+)?)\\^([+-]*[1-9]\\d*)(?=\\b)"; | ||
const DoubleDecimalPointRegex: (placeholder: string) => string; | ||
@@ -42,0 +42,0 @@ const DoubleWithoutIntegralRegex: (placeholder: string) => string; |
@@ -47,7 +47,7 @@ export declare namespace FrenchNumeric { | ||
const DoubleWithoutIntegralRegex: (placeholder: string) => string; | ||
const DoubleWithMultiplierRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+\\,)))\\d+,\\d+\\s*(K|k|M|G|T)(?=\\b)"; | ||
const DoubleWithMultiplierRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+\\[,\\.])))\\d+[,\\.]\\d+\\s*(K|k|M|G|T)(?=\\b)"; | ||
const DoubleWithRoundNumber: string; | ||
const DoubleAllFloatRegex: string; | ||
const DoubleExponentialNotationRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+,)))(\\d+(,\\d+)?)e([+-]*[1-9]\\d*)(?=\\b)"; | ||
const DoubleCaretExponentialNotationRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+,)))(\\d+(,\\d+)?)\\^([+-]*[1-9]\\d*)(?=\\b)"; | ||
const DoubleExponentialNotationRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+[,\\.])))(\\d+([,\\.]\\d+)?)e([+-]*[1-9]\\d*)(?=\\b)"; | ||
const DoubleCaretExponentialNotationRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+[,\\.])))(\\d+([,\\.]\\d+)?)\\^([+-]*[1-9]\\d*)(?=\\b)"; | ||
const CurrencyRegex = "(((?<=\\W|^)-\\s*)|(?<=\\b))\\d+\\s*(B|b|m|t|g)(?=\\b)"; | ||
@@ -54,0 +54,0 @@ const NumberWithSuffixPercentage: string; |
@@ -49,7 +49,7 @@ export declare namespace SpanishNumeric { | ||
const DoubleWithoutIntegralRegex: (placeholder: string) => string; | ||
const DoubleWithMultiplierRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+\\,)))\\d+,\\d+\\s*(K|k|M|G|T)(?=\\b)"; | ||
const DoubleWithMultiplierRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+\\[\\.,])))\\d+[\\.,]\\d+\\s*(K|k|M|G|T)(?=\\b)"; | ||
const DoubleWithRoundNumber: string; | ||
const DoubleAllFloatRegex: string; | ||
const DoubleExponentialNotationRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+,)))(\\d+(,\\d+)?)e([+-]*[1-9]\\d*)(?=\\b)"; | ||
const DoubleCaretExponentialNotationRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+,)))(\\d+(,\\d+)?)\\^([+-]*[1-9]\\d*)(?=\\b)"; | ||
const DoubleExponentialNotationRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+[\\.,])))(\\d+([\\.,]\\d+)?)e([+-]*[1-9]\\d*)(?=\\b)"; | ||
const DoubleCaretExponentialNotationRegex = "(((?<!\\d+\\s*)-\\s*)|((?<=\\b)(?<!\\d+[\\.,])))(\\d+([\\.,]\\d+)?)\\^([+-]*[1-9]\\d*)(?=\\b)"; | ||
const NumberWithPrefixPercentage: string; | ||
@@ -56,0 +56,0 @@ const CurrencyRegex = "(((?<=\\W|^)-\\s*)|(?<=\\b))\\d+\\s*(B|b|m|t|g)(?=\\b)"; |
{ | ||
"name": "@microsoft/recognizers-text-number", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "recognizers-text-number provides robust recognition and resolution of numbers expressed in multiple languages.", | ||
@@ -34,3 +34,3 @@ "author": "Microsoft Corp.", | ||
"dependencies": { | ||
"@microsoft/recognizers-text": "~1.1.3", | ||
"@microsoft/recognizers-text": "~1.1.4", | ||
"bignumber.js": "^7.2.1", | ||
@@ -37,0 +37,0 @@ "lodash.escaperegexp": "^4.1.2", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2192409
46973