From 8c1e265c88270436476668074d3b0ab7c7d8c7d7 Mon Sep 17 00:00:00 2001 From: Jan Vennemann Date: Thu, 22 Aug 2019 18:28:32 +0200 Subject: [PATCH] fix: rename isRegexp usage to isRegExp --- common/Resources/ti.internal/extensions/node/assert.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/Resources/ti.internal/extensions/node/assert.js b/common/Resources/ti.internal/extensions/node/assert.js index 1d53f92e71c..848e100df88 100644 --- a/common/Resources/ti.internal/extensions/node/assert.js +++ b/common/Resources/ti.internal/extensions/node/assert.js @@ -299,8 +299,8 @@ function deepEqual(actual, expected, strictness, references) { } let comparison = COMPARE_TYPE.Object; - if (util.types.isRegexp(actual)) { // RegExp source and flags should match - if (!util.types.isRegexp(expected) || actual.flags !== expected.flags || actual.source !== expected.source) { + if (util.types.isRegExp(actual)) { // RegExp source and flags should match + if (!util.types.isRegExp(expected) || actual.flags !== expected.flags || actual.source !== expected.source) { return false; } // continue on to check properties... @@ -624,7 +624,7 @@ function checkError(actual, expected, message) { // Error type - check type matches // Error instance - compare properties if (typeof expected === 'object') { - if (util.types.isRegexp(expected)) { + if (util.types.isRegExp(expected)) { return expected.test(actual); // does the error match the RegExp expression? if so, pass }