Verified Commit 6b55b8c6 authored by Dave Long's avatar Dave Long
Browse files

Issue #3503556 by tom konda: Wrong Regular Expression for string comparison in...

Issue #3503556 by tom konda: Wrong Regular Expression for string comparison in Nightwatch.js assertion

(cherry picked from commit daf3cd72)
parent 2d225cb5
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ module.exports.assertion = function (expected) {
    const deprecationMessages =
      sessionStorageEntries !== null
        ? sessionStorageEntries.filter((message) =>
            new RegExp('[Deprecation]').test(message),
            message.includes('[Deprecation]'),
          )
        : [];

+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ module.exports.assertion = function () {
    const deprecationMessages =
      sessionStorageEntries !== null
        ? sessionStorageEntries.filter((message) =>
            new RegExp('[Deprecation]').test(message),
            message.includes('[Deprecation]'),
          )
        : [];