/*global define*/
define([
        './defined'
    ], function(
        defined) {
    "use strict";

    var dataUriRegex = /^data:(.*?)(;base64)?,(.*)$/;

    /**
     * Determines if the specified uri is a data uri.
     *
     * @exports isDataUri
     *
     * @param {String} uri The uri to test.
     * @returns {Boolean} true when the uri is a data uri; otherwise, false.
     *
     * @private
     */
    function isDataUri(uri) {
        if (defined(uri)) {
            var result = dataUriRegex.exec(uri);
            return (result !== null);
        }

        return false;
    }

    return isDataUri;
});
@@ -478,20 +478,14 @@
     
-var result =
+return
  dat
@@ -498,57 +498,19 @@
 gex.
-exec
+test
 (uri);%0A
-            return (result !== null);%0A
     
@@ -570,8 +570,9 @@
 Uri;%0A%7D);
+%0A

Change .exec to .test