]> gerrit.simantics Code Review - simantics/district.git/blob - is-unicode.js
2ffb9e869bd6a3208557de3094c48fa6d240affc
[simantics/district.git] / is-unicode.js
1 'use strict';
2
3 module.exports = function (t, a) {
4         var re;
5         a(t.call(/raz/), false, "Normal");
6         a(t.call(/raz/g), false, "Global");
7         try { re = new RegExp('raz', 'u'); } catch (ignore) {}
8         if (!re) return;
9         a(t.call(re), true, "Unicode");
10 };