зеркало из https://github.com/github/rally.git
fix: #199 transform found Rally artifacts to upper case
since Rally API returns 'undefined' errors for lowercase artifacts.
This commit is contained in:
Родитель
8f1cb6f448
Коммит
cec5930b8e
|
@ -726,7 +726,9 @@ class RallyValidate {
|
|||
const regexp = RegExp('\\b' + prefix + '[0-9]{1,10}\\b', 'gi')
|
||||
const artifactMatches = text.match(regexp)
|
||||
if (artifactMatches) {
|
||||
artifacts = artifacts.concat(artifactMatches)
|
||||
artifacts = artifacts.concat(artifactMatches.map(
|
||||
artifactMatch => artifactMatch.toUpperCase())
|
||||
)
|
||||
}
|
||||
})
|
||||
return artifacts
|
||||
|
@ -769,7 +771,7 @@ class RallyValidate {
|
|||
const artifactMatches = matches.map(match => {
|
||||
const artifactMatch = {
|
||||
command: command,
|
||||
artifact: match.substr(command.length + 2)
|
||||
artifact: match.substr(command.length + 2).toUpperCase()
|
||||
}
|
||||
return artifactMatch
|
||||
})
|
||||
|
|
Загрузка…
Ссылка в новой задаче