]> gerrit.simantics Code Review - simantics/district.git/blob - is-sticky.js
e154ac2916557fe4ba1bdf315ed36028ee178b1e
[simantics/district.git] / is-sticky.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', 'y'); } catch (ignore) {}
8         if (!re) return;
9         a(t.call(re), true, "Sticky");
10 };