Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonConger committed Jul 13, 2023
2 parents faa2cd6 + 4226eea commit 2d9708d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion out/notebooks/splunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function dispatchSpl2Module(service: any, spl2Module: string, app: string
namespace = '';
app = app || 'search'; // default to search app
// Get last statement assignment '$my_statement = ...' -> 'my_statement'
const statementMatches = [...spl2Module.matchAll(/\$([a-zA-Z0-9_]+)[\s]*=/gm)];
const statementMatches = [...spl2Module.matchAll(/^\s*\$([a-zA-Z0-9_]+)[\s]*=/gm)];
if (!statementMatches
|| statementMatches.length < 1
|| statementMatches[statementMatches.length - 1].length < 2) {
Expand Down

0 comments on commit 2d9708d

Please sign in to comment.