浏览代码

EAGLESIX-3004: "object" for "Object".

Scott Munday 11 年之前
父节点
当前提交
dc19190575
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/pipeline/matcher/MatchExpressionParser.js

+ 1 - 1
lib/pipeline/matcher/MatchExpressionParser.js

@@ -152,7 +152,7 @@ proto._parse = function _parse(obj, level){
 					return status;
 				root.add(status.result);*/
 			} else if ('text' === rest) {
-				if (typeof currval !== 'Object') {
+				if (typeof currval !== 'object') {
 					return {code: ErrorCodes.BAD_VALUE, description: '$text expects an object'};
 				}