Skip to content

Conversation

@Yikun
Copy link
Owner

@Yikun Yikun commented Jun 3, 2021

No description provided.

@Yikun Yikun changed the title Add Hexo Migrator Test Trigger Unhandled rejection YAMLExceptio Jun 3, 2021
@Yikun
Copy link
Owner Author

Yikun commented Jun 3, 2021

@CloudyCity 有空看看这个,

data.title = issue.title.replace(/\"/g,"");

在这加个转义应该就可以。

title: [asd]xxx

这个是个非法的yaml,可能需要转义,或者直接把这种特殊字符干掉换成空格?有啥想法没

@CloudyCity
Copy link
Contributor

@CloudyCity 有空看看这个,

data.title = issue.title.replace(/\"/g,"");

在这加个转义应该就可以。

title: [asd]xxx

这个是个非法的yaml,可能需要转义,或者直接把这种特殊字符干掉换成空格?有啥想法没

或者从源头解决?字符串都加上单引号。
image
image

@Yikun
Copy link
Owner Author

Yikun commented Jun 3, 2021

这个不是meta 的问题,是title就有问题,所以得自己转~和你meta加的那个没关系

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants