diff --git a/src/rules/file/strictMacroDefinition.ts b/src/rules/file/strictMacroDefinition.ts index 5076ec6..726d7ec 100644 --- a/src/rules/file/strictMacroDefinition.ts +++ b/src/rules/file/strictMacroDefinition.ts @@ -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)