UNPKG

hoxy

Version:

Web-hacking proxy API for node

24 lines (19 loc) 480 B
/* * Copyright (c) 2015 by Greg Reimer <gregreimer@gmail.com> * MIT License. See mit-license.txt for more info. */ // TODO: This simple regex will cover many cases but // will probably need some improvements. "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var patt = /xml/; exports["default"] = function (mimeType) { if (!mimeType) { return false; } else { return patt.test(mimeType); } }; module.exports = exports["default"];