Power-Maverick / PCF-CustomControlBuilder

XrmToolBox Plugin for building and deploying custom control using PCF
MIT License
40 stars 6 forks source link

if i use a2b or b2b as my publisher prefix, it throws an error saying incorrect publisher. #61

Closed npmModuleCIF closed 1 year ago

npmModuleCIF commented 1 year ago

Contact Details

No response

What happened?

I found one issue, if i use a2b or b2b as my publisher prefix, it throws an error saying incorrect publisher. I look at the regex code, which needs to be modied for a2b, or b2b type of publisher prefixes. For my project i have just 3 letters middle one being the number and other two characters are alpha characters.

What version of the tool are you using?

1.2022.5.56

What version of XrmToolBox are you running?

1.2022.5.56

Relevant log output

No response

power-maverick-bot[bot] commented 1 year ago

I am Groot!! Thanks for opening your first issue here! Please make sure you have given us as much context as possible. One of the Avengers will respond as soon as possible.

github-actions[bot] commented 1 year ago

Thank you for creating your first issue. This will help me improve this tool.

npmModuleCIF commented 1 year ago

Looks like you fixed it already, can you please push an update to xrmtoolbox. I start using it. Thanks for the great tool.

if (Regex.Match(txtPublisherPrefix.Text, @"^[A-Za-z][A-Za-z0-9]{1,8}$").Success && !txtPublisherPrefix.Text.StartsWith("mscrm")) { lblErrors.Text = string.Empty; } else { lblErrors.Text += "\nIncorrect Publisher Prefix."; isValid = false; }

Power-Maverick commented 1 year ago

The update is now pushed to XTB. Thanks for the reminder.

Power-Maverick commented 1 year ago

Was fixed in version 2.2022.07.162