Source: utils/const.ts

import EventEmitter from 'eventemitter3';

/**
 * Regexp for data URI.
 * Based on: https://github.com/ragingwind/data-uri-regex
 * @static
 * @type {RegExp}
 * @example
 * import { DATA_URI } from 'pixi.js';
 *
 * DATA_URI.test('data:image/png;base64,foobar'); // => true
 */
export const DATA_URI = /^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;

// export the event emitter so we can use it in external modules
export { EventEmitter };