Skip to content

Commit

Permalink
fix: update regex to handle single quotes in macro options
Browse files Browse the repository at this point in the history
  • Loading branch information
sabhas committed Jan 2, 2023
1 parent 0bd5748 commit 0c79a1e
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 0c79a1e

Please sign in to comment.