mirror of
https://github.com/sasjs/lint.git
synced 2025-12-11 09:54:35 +00:00
fix: update regex to handle single quotes in macro options
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user