UNPKG

426 BJavaScriptView Raw
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 *
9 * @emails oncall+draft_js
10 */
11'use strict';
12
13var REGEX_BLOCK_DELIMITER = new RegExp('\r', 'g');
14
15function sanitizeDraftText(input) {
16 return input.replace(REGEX_BLOCK_DELIMITER, '');
17}
18
19module.exports = sanitizeDraftText;
\No newline at end of file