Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter NameDescription
name

Internal identifier for the custom type. Must be unique across all standard types and custom types.

Info

NOTE: You should verify that your data type's name value does not conflict with other custom data type names.

prettyNameDisplay name for the custom type.
category

The category to assign to the type. The current categories are displayed within the data type drop-down for each column.

defaultProbabilityAssign a default probability for the custom type. See below.
testCaseThis block contains the regular expression specification to be applied to the column values.
stripWhitespaceWhen set to true, whitespace is removed from any value prior for purposes of validation. The original value is untouched.
regexes

This array contains a set of regular expressions that are used to validate the column values. For a regex type, the column value must match with at least one value among the set of expressions.

Info

NOTE: All match types must be double-escaped in the regex expression. For example, to replicate the \d pattern, you must enter: \\d.

 

For more information on regular expressions, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions

D s product
 implements a version of regular expressions based off of RE2 and PCRE regular expressions.

probability(optional) Assign an incremental change to the probability when a match is found between a value and one of the regular expressions. See Defining probabilities below.

...