Skip to content

Commit

Permalink
Merge pull request #3 from domapic/release-1.0.0-beta.2
Browse files Browse the repository at this point in the history
Release 1.0.0 beta.2
  • Loading branch information
javierbrea committed Mar 3, 2019
2 parents a1d7fd1 + 6eb45c1 commit afaa4e7
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Expand Up @@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
### Removed

## [1.0.0-alpha.1] - 2019-03-02
## [1.0.0-beta.2] - 2019-03-03
### Fixed
- Fix url validator. Now it is configured as in api.

## [1.0.0-beta.1] - 2019-03-02
### Added
- First pre-release
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "domapic-controller-ui",
"version": "1.0.0-beta.1",
"version": "1.0.0-beta.2",
"description": "Web user interface for Domapic Controller",
"main": "index.js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
@@ -1,6 +1,6 @@
sonar.organization=domapic
sonar.projectKey=domapic-controller-ui
sonar.projectVersion=1.0.0-beta.1
sonar.projectVersion=1.0.0-beta.2

sonar.sources=src
sonar.exclusions=node_modules/**
Expand Down
9 changes: 8 additions & 1 deletion src/data-layer/services/ability/validators.js
Expand Up @@ -34,7 +34,14 @@ export const validateAbilityData = (ability, value) => {
errors.push("Not valid ipv4");
} else if (ability.format === "ipv6" && !validator.isIP(value, 6)) {
errors.push("Not valid ipv6");
} else if (ability.format === "uri" && !validator.isURL(value)) {
} else if (
ability.format === "uri" &&
!validator.isURL(value, {
require_tld: false,
allow_underscores: true,
require_protocol: true
})
) {
errors.push("Not valid uri");
}
if (ability.maxLength && value.length > ability.maxLength) {
Expand Down

0 comments on commit afaa4e7

Please sign in to comment.