Skip to content

Commit

Permalink
fix: case insensitive matching (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
csmig authored Dec 20, 2022
1 parent bc4782d commit d429923
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cargo.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class TaskObject {
const matchedByCklHostname = this.mappedCklHostnames.get(target.metadata.cklHostName.toLowerCase())
if (!matchedByCklHostname) return null
const matchedByAllCklMetadata = matchedByCklHostname.find(
asset => asset.metadata.cklWebDbInstance === target.metadata.cklWebDbInstance
&& asset.metadata.cklWebDbSite === target.metadata.cklWebDbSite)
asset => asset.metadata.cklWebDbInstance?.toLowerCase() === target.metadata.cklWebDbInstance?.toLowerCase()
&& asset.metadata.cklWebDbSite?.toLowerCase() === target.metadata.cklWebDbSite?.toLowerCase())
if (!matchedByAllCklMetadata) return null
return matchedByAllCklMetadata
}
Expand Down

0 comments on commit d429923

Please sign in to comment.