You've already forked linux-packaging-mono
Imported Upstream version 4.2.0.179
Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
This commit is contained in:
committed by
Jo Shields
parent
183bba2c9a
commit
6992685b86
@ -226,7 +226,7 @@ namespace System.Web.Script.Serialization
|
||||
/*colon CO*/ {CO,CO,__,__,__,__,CA,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__},
|
||||
/*value VA*/ {VA,VA,OS,__,AB,__,__,__,SB,__,__,PX,MX,__,ZX,IX,__,__,__,__,__,FA,__,NU,__,__,TR,__,__,__,__,__,I1,__,__,V1},
|
||||
/*array AR*/ {AR,AR,OS,__,AB,AE,__,__,SB,__,__,PX,MX,__,ZX,IX,__,__,__,__,__,FA,__,NU,__,__,TR,__,__,__,__,__,I1,__,__,V1},
|
||||
/*string ST*/ {ST,__,ST,ST,ST,ST,ST,ST,SE,EX,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST},
|
||||
/*string ST*/ {ST,ST,ST,ST,ST,ST,ST,ST,SE,EX,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST,ST},
|
||||
/*escape ES*/ {__,__,__,__,__,__,__,__,ST,ST,ST,__,__,__,__,__,__,ST,__,__,__,ST,__,ST,ST,__,ST,U1,__,__,__,__,__,__,__,__},
|
||||
/*u1 U1*/ {__,__,__,__,__,__,__,__,__,__,__,__,__,__,U2,U2,U2,U2,U2,U2,U2,U2,__,__,__,__,__,__,U2,U2,__,__,__,__,__,__},
|
||||
/*u2 U2*/ {__,__,__,__,__,__,__,__,__,__,__,__,__,__,U3,U3,U3,U3,U3,U3,U3,U3,__,__,__,__,__,__,U3,U3,__,__,__,__,__,__},
|
||||
@ -495,21 +495,21 @@ namespace System.Web.Script.Serialization
|
||||
break;
|
||||
|
||||
case JsonType.TRUE:
|
||||
if (String.Compare (s, "true", StringComparison.Ordinal) == 0)
|
||||
if (String.Compare (s.Trim (), "true", StringComparison.Ordinal) == 0)
|
||||
result = true;
|
||||
else
|
||||
converted = false;
|
||||
break;
|
||||
|
||||
case JsonType.FALSE:
|
||||
if (String.Compare (s, "false", StringComparison.Ordinal) == 0)
|
||||
if (String.Compare (s.Trim (), "false", StringComparison.Ordinal) == 0)
|
||||
result = false;
|
||||
else
|
||||
converted = false;
|
||||
break;
|
||||
|
||||
case JsonType.NULL:
|
||||
if (String.Compare (s, "null", StringComparison.Ordinal) != 0)
|
||||
if (String.Compare (s.Trim (), "null", StringComparison.Ordinal) != 0)
|
||||
converted = false;
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user