This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
2018-06-21 04:33:21 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
const unescape = (text: string) => {
|
2020-05-25 05:22:06 +00:00
|
|
|
return text
|
2020-06-23 04:29:21 +00:00
|
|
|
.replace(/\\([\\`*{}[\]()#+\-.!_>])/g, "$1")
|
|
|
|
.replace(/\n\\\n/g, "\n\n");
|
2018-06-21 04:33:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default unescape;
|