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 | ;
|
12 |
|
13 | var DraftStringKey = {
|
14 | stringify: function stringify(key) {
|
15 | return '_' + String(key);
|
16 | },
|
17 | unstringify: function unstringify(key) {
|
18 | return key.slice(1);
|
19 | }
|
20 | };
|
21 | module.exports = DraftStringKey; |
\ | No newline at end of file |