mirror of
https://github.com/sasjs/lint.git
synced 2026-01-15 16:20:05 +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
|
const severity = config?.severityLevel[name] || Severity.Warning
|
||||||
|
|
||||||
if (optionsPresent) {
|
if (optionsPresent) {
|
||||||
const regex = new RegExp(/="(.*?)"/, 'g')
|
const regex = new RegExp(/=["|'](.*?)["|']/, 'g')
|
||||||
|
|
||||||
let result = regex.exec(optionsPresent)
|
let result = regex.exec(optionsPresent)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user