* Tweaked a regex that was returning invalid results in some cases.
parent
ed4ea9b4b8
commit
3c7e6b0c1e
|
@ -97,7 +97,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
|||
for (int p = 0; p < blocked.Length;p++)
|
||||
{
|
||||
|
||||
Match SecurityM = Regex.Match(Script, "[;}][^\"']+" + blocked[p].Replace(".", "\\.") + "\\.[^\"']", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline | RegexOptions.IgnoreCase);
|
||||
Match SecurityM = Regex.Match(Script, "[;}][^\"']+" + blocked[p].Replace(".", "\\.") + "\\.[^\"']", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline);
|
||||
if (SecurityM.Success)
|
||||
throw new Exception("CS0103: 'The name '" + blocked[p] + "' does not exist in the current context'");
|
||||
|
||||
|
|
Loading…
Reference in New Issue