is-unicode.js 293 B

12345678910111213
  1. "use strict";
  2. module.exports = function (t, a) {
  3. var re;
  4. a(t.call(/raz/), false, "Normal");
  5. a(t.call(/raz/g), false, "Global");
  6. try {
  7. // eslint-disable-next-line no-invalid-regexp
  8. re = new RegExp("raz", "u");
  9. } catch (ignore) {}
  10. if (!re) return;
  11. a(t.call(re), true, "Unicode");
  12. };