Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

sanitizeDraftText.js.flow 456 B

před 3 roky
12345678910111213141516171819
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. * @flow strict
  9. * @emails oncall+draft_js
  10. */
  11. 'use strict';
  12. const REGEX_BLOCK_DELIMITER = new RegExp('\r', 'g');
  13. function sanitizeDraftText(input: string): string {
  14. return input.replace(REGEX_BLOCK_DELIMITER, '');
  15. }
  16. module.exports = sanitizeDraftText;