Skip to content

Commit

Permalink
Merge pull request #195 from sasjs/issue-140
Browse files Browse the repository at this point in the history
fix: update regex to handle single quotes in macro options
  • Loading branch information
allanbowe authored Jan 2, 2023
2 parents 0bd5748 + 0c79a1e commit 9984a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/file/strictMacroDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const processOptions = (
const severity = config?.severityLevel[name] || Severity.Warning

if (optionsPresent) {
const regex = new RegExp(/="(.*?)"/, 'g')
const regex = new RegExp(/=["|'](.*?)["|']/, 'g')

let result = regex.exec(optionsPresent)

Expand Down

0 comments on commit 9984a37

Please sign in to comment.