Front end of the Slack clone application.

Validation.js 401B

123456789101112131415161718
  1. /*!
  2. * ws: a node.js websocket client
  3. * Copyright(c) 2011 Einar Otto Stangvik <einaros@gmail.com>
  4. * MIT Licensed
  5. */
  6. 'use strict';
  7. try {
  8. const isValidUTF8 = require('utf-8-validate');
  9. module.exports = typeof isValidUTF8 === 'object'
  10. ? isValidUTF8.Validation.isValidUTF8 // utf-8-validate@<3.0.0
  11. : isValidUTF8;
  12. } catch (e) /* istanbul ignore next */ {
  13. module.exports = () => true;
  14. }