1
0
mirror of https://github.com/sasjs/lint.git synced 2026-01-17 01:00:06 +00:00

test: for hasMacroParentheses & noNestedMacros

This commit is contained in:
Saad Jutt
2021-04-07 00:58:38 +05:00
parent 3530badf49
commit 1808d9851a
5 changed files with 221 additions and 6 deletions

View File

@@ -25,8 +25,8 @@ const test = (value: string) => {
if (trimmedStatement.startsWith('%macro ')) {
const macroName = trimmedStatement
.split(' ')
.filter((s: string) => !!s)[1]
.slice(7, trimmedStatement.length)
.trim()
.split('(')[0]
stack.push(macroName)
} else if (trimmedStatement.startsWith('%mend')) {