Skip to content

SyntaxError: Invalid regular expression flags #5

Description

@sdlyfjx

已知问题。由于腾讯云SCF环境只有NODEJS8.9.0版本。该版本不支持正则表达式中的/s模式(默认就是单行模式?),只有/m /i /g三种模式。所以这里用了/s后会导致语法错误。

暂时解决方案就是自己手动修改node_modules\hexo\lib\plugins\filter\after_render\meta_generator.js:10里面的那个报错的正则表达式,把最后的/s中的s去掉即可。

已经反馈给@hexo官方,期待他们的修复。
hexojs/hexo#4123

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions