feat($resource): support an unescaped url

Added new regex to test the url parameters with:
- if the parameter consists only of numbers, then it's a port