deps: upgrade mark-twain

This commit is contained in:
Benjy Cui 2016-02-29 17:43:22 +08:00
parent 203627f4c7
commit 3c5c36c0d9
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@
"less-loader": "^2.2.0",
"lesshint-antd": "^1.2.1",
"lodash": "^4.1.0",
"mark-twain": "^0.2.0-beta",
"mark-twain": "^0.2.0-beta.4",
"nico-jsx": "~0.8.2",
"postcss-loader": "^0.8.0",
"pre-commit": "1.x",

View File

@ -34,7 +34,7 @@ exports.parseFileContent = R.pipe(
const parseBasicMeta = R.pipe(
R.path(['1', 'children']),
R.map((child) => R.split(/:\s?/, child.children[0].children)),
R.map((child) => R.split(/:\s?/, child.children)),
R.fromPairs
);
const parseEnglishTitle = R.path(['0', 'children']);