From 3c7e6b0c1e9efebbd15768946ab9067c5fb0a591 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Tue, 13 May 2008 23:19:18 +0000 Subject: [PATCH] * Tweaked a regex that was returning invalid results in some cases. --- .../ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs index 69aa0b04f2..21009006bd 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs @@ -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'");