|
@@ -13,11 +13,11 @@ const LocalizedStrings = LocalizedStringsService.getInstance();
|
|
export class OutputMatching {
|
|
export class OutputMatching {
|
|
|
|
|
|
static get NUM_REGEX () {
|
|
static get NUM_REGEX () {
|
|
- return /^[0-9]+(\.[0-9]+)?$/;
|
|
|
|
|
|
+ return /^[+-]?([0-9]+([.][0-9]*)?(e[+-]?[0-9]+)?)$/;
|
|
}
|
|
}
|
|
|
|
|
|
static get NUM_IN_STRING_REGEX () {
|
|
static get NUM_IN_STRING_REGEX () {
|
|
- return /[0-9]+(\.[0-9]+)?/g;
|
|
|
|
|
|
+ return /[+-]?([0-9]+([.][0-9]*)?(e[+-]?[0-9]+)?)/g;
|
|
}
|
|
}
|
|
|
|
|
|
static get BOOLEAN_REGEX () {
|
|
static get BOOLEAN_REGEX () {
|