*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build: PowerShell Studio 2020 5.7.175
32 or 64 bit version of product: 64
Operating system: Windows 10 1903
32 or 64 bit OS: 64
*** Please add details and screenshots as needed below. ***
DO NOT POST LICENSES, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
I am working on a PS Module project and for one of my functions, I am utilizing the 'ValidatePattern' parameter validation. I selected the provided 'Internet e-mail address' regex pattern from within the function builder tool. When it is put in place it looks like the snippet below and seems to work just fine.
Code: Select all
[ValidatePattern('\w+([-+.'']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*')]
Code: Select all
[ValidatePattern('\w+([-+.'''']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*')]
Is there a formatting setting I should have configured a certain way or something else I should be doing that will prevent this behavior from occurring going forward?
Thanks,
Glen