Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to disable "*" special character in mask #958

Closed
maxhorobets opened this issue Dec 7, 2021 · 1 comment
Closed

Possibility to disable "*" special character in mask #958

maxhorobets opened this issue Dec 7, 2021 · 1 comment
Labels

Comments

@maxhorobets
Copy link

🚀 feature request

Description

Hi all!

I need to register my own custom pattern for "*" character, but as I know this character is using as a special character:

image

Also I not found option to disable using this character in your docs.

My code:

private readonly allPrintableSymbols: RegExp = new RegExp(`[\u0020-\u007e\u00a0-\u00ff]`);

public customPatterns: IConfig['patterns'] = {
  '#': { pattern: this.numberPattern },
  '0': { pattern: this.numberPattern },
  '9': { pattern: this.numberPattern },
  '@': { pattern: this.lettersPattern },
  ['A']: { pattern: this.lettersPattern },
  ['S']: { pattern: this.lettersPattern },
  ['!']: { pattern: this.punctuationPattern },    
  ['*']: { pattern: this.allPrintableSymbols },
};
public readonly specialCharacters = ['-', ' ', '.', ',', '/', '(', ')', ':', '+', '[', ']'];

Can I have any solutions to register my own pattern for "*"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants