SDK domains/whitelisted-domains regex pattern issue

  • 27 December 2016
  • 2 replies
  • 36 views


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|\-)+)?$/





This topic has been closed for comments

2 replies


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


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