]> gerrit.simantics Code Review - simantics/district.git/blob - es5-ext/reg-exp/valid-reg-exp.js
Hide "enabled" column for non-component type tech type tables
[simantics/district.git] / es5-ext / reg-exp / valid-reg-exp.js
1 'use strict';
2
3 var isRegExp = require('./is-reg-exp');
4
5 module.exports = function (x) {
6         if (!isRegExp(x)) throw new TypeError(x + " is not a RegExp object");
7         return x;
8 };