Skip to content

Commit 9da95c8

Browse files
author
James Brundage
committed
feat: Invoke-Interpreter Call Operator Support ( Fixes #920 )
Variable Regex Fix
1 parent 1be9a7e commit 9da95c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Commands/Interpreters/Invoke-Interpreter.ps.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function Invoke-Interpreter {
2727

2828
# If the first word is a variable
2929
if ($MyWords[0] -match '^\$(?<v>\w+)') {
30-
$firstWordVariableValue = $ExecutionContext.SessionState.PSVariable.Get($matches.0 -replace '^\s\$').Value
30+
$firstWordVariableValue = $ExecutionContext.SessionState.PSVariable.Get($matches.0 -replace '^\$').Value
3131
# and it has a value
3232
if ($firstWordVariableValue) {
3333
# use that as the InvocationName.

0 commit comments

Comments
 (0)