r3-v2/node_modules/es5-ext/test/reg-exp/#/is-unicode.js

14 lines
293 B
JavaScript
Raw Normal View History

2020-02-27 15:24:35 +01:00
"use strict";
module.exports = function (t, a) {
var re;
a(t.call(/raz/), false, "Normal");
a(t.call(/raz/g), false, "Global");
try {
// eslint-disable-next-line no-invalid-regexp
re = new RegExp("raz", "u");
} catch (ignore) {}
if (!re) return;
a(t.call(re), true, "Unicode");
};