microsoft / fluentui

Fluent UI web represents a collection of utilities, React components, and web components for building web applications.
https://react.fluentui.dev
Other
18.53k stars 2.74k forks source link

Could we get an example of using MaskedTextField with a custom Mask RegEx? #9212

Closed NigelWit closed 5 years ago

NigelWit commented 5 years ago

The currently defined Mask regex values available are:

export const DEFAULT_MASK_FORMAT_CHARS: { [key: string]: RegExp } = {
  '9': /[0-9]/,
  a: /[a-zA-Z]/,
  '*': /[a-zA-Z0-9]/
};

Would it please be possible to get an example of implementing a MaskTextField using a custom mask regex - for example /[0-9a-zA-z]_/ (alphanumeric and _)

Thankyou!!

msft-github-bot commented 5 years ago

:tada:This issue was addressed in #9223, which has now been successfully released as office-ui-fabric-react@v6.187.0.:tada:

Handy links: