Fix compilation error

Project: http://git-wip-us.apache.org/repos/asf/couchdb-mango/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mango/commit/4f05552d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mango/tree/4f05552d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mango/diff/4f05552d

Branch: refs/heads/master
Commit: 4f05552d8c7829fed09b451263a1bb7faf4c941c
Parents: 10fcac2
Author: Tony Sun <tony....@cloudant.com>
Authored: Tue Aug 25 11:28:10 2015 -0700
Committer: Tony Sun <tony....@cloudant.com>
Committed: Tue Aug 25 13:24:03 2015 -0700

----------------------------------------------------------------------
 src/mango_util.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-mango/blob/4f05552d/src/mango_util.erl
----------------------------------------------------------------------
diff --git a/src/mango_util.erl b/src/mango_util.erl
index fd572c7..0e06f66 100644
--- a/src/mango_util.erl
+++ b/src/mango_util.erl
@@ -371,7 +371,7 @@ join(Sep, [Item | Rest]) ->
 is_number_string(Value) when is_binary(Value) ->
     is_number_string(binary_to_list(Value));
 is_number_string(Value) when is_list(Value)->
-    case re:run(Subject, ?NUMSTRING) of
+    case re:run(Value, ?NUMSTRING) of
         nomatch ->
             false;
         _ ->

Reply via email to