Skip to content

Commit

Permalink
fix(maven): use isValid, not isVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed May 14, 2019
1 parent 796c4ea commit b2b6d1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/manager/maven/extract.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path');
const { XmlDocument } = require('xmldoc');
const { isVersion } = require('../../versioning/maven');
const { isValid } = require('../../versioning/maven');

const DEFAULT_MAVEN_REPO = 'https://repo.maven.apache.org/maven2';

Expand Down Expand Up @@ -93,7 +93,7 @@ function applyProps(dep, props) {
result.skipReason = 'name-placeholder';
} else if (containsPlaceholder(currentValue)) {
result.skipReason = 'version-placeholder';
} else if (!isVersion(currentValue)) {
} else if (!isValid(currentValue)) {
result.skipReason = 'not-a-version';
}

Expand Down

0 comments on commit b2b6d1e

Please sign in to comment.