* Tweaked a regex that was returning invalid results in some cases.

0.6.0-stable
Teravus Ovares 2008-05-13 23:19:18 +00:00
parent ed4ea9b4b8
commit 3c7e6b0c1e
1 changed files with 1 additions and 1 deletions

View File

@ -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'");