diff --git a/core/modules/overlay/overlay-parent.js b/core/modules/overlay/overlay-parent.js
index b406a97..225e491 100644
--- a/core/modules/overlay/overlay-parent.js
+++ b/core/modules/overlay/overlay-parent.js
@@ -554,7 +554,7 @@ Drupal.overlay.eventhandlerOverrideLink = function (event) {
   var target = $target[0];
   var href = target.href;
   // Only handle links that have an href attribute and use the http(s) protocol.
-  if (href != undefined && href != '' && target.protocol.match(/^https?\:/)) {
+  if (href != undefined && href != '' && /^https?\:/.test(target.protocol)) {
     var anchor = href.replace(target.ownerDocument.location.href, '');
     // Skip anchor links.
     if (anchor.length == 0 || anchor.charAt(0) == '#') {
diff --git a/core/modules/system/system.js b/core/modules/system/system.js
index f4bdc6d..910fb5d 100644
--- a/core/modules/system/system.js
+++ b/core/modules/system/system.js
@@ -105,7 +105,7 @@ Drupal.behaviors.dateTime = {
           // Attach keyup handler to custom format inputs.
           $('input' + source, context).once('date-time').keyup(function () {
             var input = $(this);
-            var url = fieldSettings.lookup + (fieldSettings.lookup.match(/\?q=/) ? '&format=' : '?format=') + encodeURIComponent(input.val());
+            var url = fieldSettings.lookup + (/\?q=/.test(fieldSettings.lookup) ? '&format=' : '?format=') + encodeURIComponent(input.val());
             $.getJSON(url, function (data) {
               $(suffix).empty().append(' ' + fieldSettings.text + ': <em>' + data + '</em>');
             });
diff --git a/core/modules/user/user.js b/core/modules/user/user.js
index 042668d..d182066 100644
--- a/core/modules/user/user.js
+++ b/core/modules/user/user.js
@@ -95,10 +95,10 @@ Drupal.behaviors.password = {
 Drupal.evaluatePasswordStrength = function (password, translate) {
   var weaknesses = 0, strength = 100, msg = [];
 
-  var hasLowercase = password.match(/[a-z]+/);
-  var hasUppercase = password.match(/[A-Z]+/);
-  var hasNumbers = password.match(/[0-9]+/);
-  var hasPunctuation = password.match(/[^a-zA-Z0-9]+/);
+  var hasLowercase = /[a-z]+/.test(password);
+  var hasUppercase = /[A-Z]+/.test(password);
+  var hasNumbers = /[0-9]+/.test(password);
+  var hasPunctuation = /[^a-zA-Z0-9]+/.test(password);
 
   // If there is a username edit box on the page, compare password to that, otherwise
   // use value from the database.
