diff options
author | Teravus Ovares | 2008-05-13 23:19:18 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-05-13 23:19:18 +0000 |
commit | 3c7e6b0c1e9efebbd15768946ab9067c5fb0a591 (patch) | |
tree | 0bccaa4643730e0030143ab19a3c47154713ac2a /OpenSim/Region | |
parent | *Locked objects can now be unlocked (diff) | |
download | opensim-SC-3c7e6b0c1e9efebbd15768946ab9067c5fb0a591.zip opensim-SC-3c7e6b0c1e9efebbd15768946ab9067c5fb0a591.tar.gz opensim-SC-3c7e6b0c1e9efebbd15768946ab9067c5fb0a591.tar.bz2 opensim-SC-3c7e6b0c1e9efebbd15768946ab9067c5fb0a591.tar.xz |
* Tweaked a regex that was returning invalid results in some cases.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs index 69aa0b0..2100900 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 | |||
97 | for (int p = 0; p < blocked.Length;p++) | 97 | for (int p = 0; p < blocked.Length;p++) |
98 | { | 98 | { |
99 | 99 | ||
100 | Match SecurityM = Regex.Match(Script, "[;}][^\"']+" + blocked[p].Replace(".", "\\.") + "\\.[^\"']", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline | RegexOptions.IgnoreCase); | 100 | Match SecurityM = Regex.Match(Script, "[;}][^\"']+" + blocked[p].Replace(".", "\\.") + "\\.[^\"']", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); |
101 | if (SecurityM.Success) | 101 | if (SecurityM.Success) |
102 | throw new Exception("CS0103: 'The name '" + blocked[p] + "' does not exist in the current context'"); | 102 | throw new Exception("CS0103: 'The name '" + blocked[p] + "' does not exist in the current context'"); |
103 | 103 | ||