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

(cherry picked from commit daf3cd72f7)
merge-requests/11199/head
Dave Long 2025-02-03 21:54:43 +00:00
parent 2d225cb50b
commit 6b55b8c6d2
No known key found for this signature in database
GPG Key ID: ED52AE211E142771
2 changed files with 2 additions and 2 deletions

View File

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

View File

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