mirror of
https://github.com/sasjs/lint.git
synced 2025-12-10 17:34:36 +00:00
Merge pull request #195 from sasjs/issue-140
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