Skip to content

Commit 12b5312

Browse files
authored
Fix version parsed as number (#46)
1 parent 6b0f1c7 commit 12b5312

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "spring-boot-dependency-checker",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"description": "Spring Boot Dependency Checker - validate that you're using the versions Spring Boot has approved with your project.",
55
"keywords": [
66
"spring boot",

pom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const getSpringDefaultProperties = async (sbVersion) => {
120120
};
121121

122122
const replaceVariable = (properties, version) => {
123-
if (version.startsWith('${')) {
123+
if (String(version).startsWith('${')) {
124124
const variableName = version.replace('${', '').replace('}', '');
125125
return properties[variableName];
126126
}

0 commit comments

Comments
 (0)