const assert = require('assert')

// Assertion that succeeds if the first argument deepEquals at least one of the
// subsequent arguments (but we don't care which one)
function equalsOneOf(actual, ...expected) {
  assert(expected.length > 0)
  for (let i = 0; i < expected.length; i++) {
    try {
      assert.deepEqual(actual, expected[i])
      return // if we get here without an exception, that means success
    } catch (e) {
      if (e.name !== 'AssertionError' || i === expected.length - 1) throw e
    }
  }
}

module.exports = { equalsOneOf }

@@ -439,20 +439,24 @@
 if (
+!
 e.name
- !== '
+.match(/%5E
 Asse
@@ -465,17 +465,18 @@
 ionError
-'
+/)
  %7C%7C i ==

Fix equalsOneOf