Skip to content

Commit

Permalink
Fix issues reported by DeepSource
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalre committed Jan 18, 2023
1 parent 176264e commit 47c5fba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/processor/helm-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class HelmProcessor {
}

replaceSubstituteWithValue(substitue: string, value: string) {
const match = new RegExp("('|\")?" + substitue + "('|\")?")
const match = new RegExp(`('|")?${substitue}('|")?`)
this.text = this.text.replace(match, value)
}
}
2 changes: 0 additions & 2 deletions src/util/yaml-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { addNewLineBeforeKeywordsUpToLevelN, prependWhitespacesOnEachLine, repla
import { Settings } from "../settings"
import { JsYamlAdapter } from "../adapter/js-yaml-adapter"
import { Severity, VsCodeAdapter } from "../adapter/vs-code-adapter"
import { CommentProcessor } from "../processor/comment-processor"
import { HelmProcessor } from "../processor/helm-processor"
import { Processor } from "../processor/processor"

export class YamlUtil {
Expand Down

0 comments on commit 47c5fba

Please sign in to comment.