keyval Function Not returning correct Value

Hello,

The expected output of below code snippet should be 1185 instead of 1184. Any pointer what's causing this.

keyval("[1=1183][2=1184][3=1185]", {"3"}, "=", "]")

  Discussion posts and replies are publicly visible