Skip to main content

Hi there,




Trying to build an app to connect to a custom API, I faced a strange issue : 


My domain was always rejected when validating app using "frsh validate".




After investigating, I found the issue was due to '-' in my domain name.


This is because the regex pattern used in manifest-validation.js is invalid :


/^https\:\/\/((^\x00-\x7F]|\w)+\.((^\x00-\x7F]|\w)+(\.((^\x00-\x7F]|\w)+)?(\.((^\x00-\x7F]|\w)+)?$/




it could be replaced by 


/^https\:\/\/(/^\x00-\x7F]|\w|\-)+\.(.^\x00-\x7F]|\w|\-)+(\.(.^\x00-\x7F]|\w|\-)+)?(\.(.^\x00-\x7F]|\w|\-)+)?$/




Thanks for reporting this issue. I will post an update once we deploy a fix.



There was an issue where the special character "-" in the domain name caused it to fail validation. This issue has now been fixed, please use SDK v2.3.2 (or above) to get the fixed version - https://developers.freshdesk.com/docs/getting-started/#install_the_sdk