Skip to content

Commit 37201c8

Browse files
committed
Correct Fix for issue #473
1 parent 6d66d75 commit 37201c8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Engine/Helper.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ internal set
100100
/// </summary>
101101
private Dictionary<Ast, VariableAnalysis> VariableAnalysisDictionary;
102102

103-
private string[] functionScopes = new string[] { "global:", "local:", "script:", "private:", "Global:", "Local:", "Script:", "Private:" };
103+
private string[] functionScopes = new string[] { "global:", "local:", "script:", "private:"};
104104

105-
private string[] variableScopes = new string[] { "global:", "local:", "script:", "private:", "variable:", ":", "Global:", "Local:", "Script:", "Private:", "Variable:" };
105+
private string[] variableScopes = new string[] { "global:", "local:", "script:", "private:", "variable:", ":"};
106106

107107
#endregion
108108

@@ -419,7 +419,8 @@ private string NameWithoutScope(string name, string[] scopes)
419419
foreach (string scope in scopes)
420420
{
421421
// trim the scope part
422-
if (name.IndexOf(scope) == 0)
422+
if (name.IndexOf(scope, StringComparison.OrdinalIgnoreCase) == 0)
423+
423424
{
424425
return name.Substring(scope.Length);
425426
}

0 commit comments

Comments
 (0)