aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorMelanie Thielker2008-09-02 06:43:16 +0000
committerMelanie Thielker2008-09-02 06:43:16 +0000
commitf13a48fe1cb47419c9ef40a721ca956b0be40f61 (patch)
treecb4628d7922567948a467498b2ddf85afd8600cd /OpenSim/Region/ScriptEngine/Shared
parentTemporarily disable the unit tests for Shared/ until they can be updated. (diff)
downloadopensim-SC_OLD-f13a48fe1cb47419c9ef40a721ca956b0be40f61.zip
opensim-SC_OLD-f13a48fe1cb47419c9ef40a721ca956b0be40f61.tar.gz
opensim-SC_OLD-f13a48fe1cb47419c9ef40a721ca956b0be40f61.tar.bz2
opensim-SC_OLD-f13a48fe1cb47419c9ef40a721ca956b0be40f61.tar.xz
Fix regex for string->int cast to accept leading spaces and a sign
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index 23177e5..3e63808 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -1394,7 +1394,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
1394 1394
1395 static public explicit operator LSLInteger(string s) 1395 static public explicit operator LSLInteger(string s)
1396 { 1396 {
1397 Regex r = new Regex("^[0-9][0-9]*"); 1397 Regex r = new Regex("^[ ]*-?[0-9][0-9]*");
1398 Match m = r.Match(s); 1398 Match m = r.Match(s);
1399 string v = m.Groups[0].Value; 1399 string v = m.Groups[0].Value;
1400 1400