美文网首页
无标题文章

无标题文章

作者: f75409e26af7 | 来源:发表于2014-04-22 15:57 被阅读0次

    如果包含大量的下划线,Marked 处理 em的正则会出现 CPU_____________高占_x,直至Chrome崩溃的现象。 Firefox没有这个正则的bug。

    Marked的正则:\b_((?:__|[\s\S])+?)_\b|*((?:**|[\s\S])+?)*(?!*)

    处理文本:
    Result
    __________Calculate
    __________TempFile
    __________tmpForCompareFile TransFile
    __________datFile
    __________2_
    it
    aaaa
    vvvvv
    cccc

    相关文章

      网友评论

          本文标题:无标题文章

          本文链接:https://www.haomeiwen.com/subject/mualtttx.html