# HG changeset patch # User Zoe Hong # Date 1429627296 -7200 # Node ID c15f53afd7a5b08ab3564c6ca0796367223910f7 # Parent e6e213b26454e1b995051ef3fe074cfa35026207 Bug fixed: skiping everything inside '??', including '??' diff -r e6e213b26454 -r c15f53afd7a5 js/taggingtext.js --- a/js/taggingtext.js Mon Apr 20 16:55:33 2015 +0200 +++ b/js/taggingtext.js Tue Apr 21 16:41:36 2015 +0200 @@ -560,6 +560,12 @@ saveUndoText(); + // skip everything inside "【】", including "【】". // (【([^【】])*】) //(【.*】) + replaceSmartRegexString += "(【[^【】]+(?!.*})】)*"; + replaceSmartReplaceString += "$"+count; + count ++; + // --- + $('#smartRegexShowDiv').children('span').each(function () { replaceSmartRegexString += "(" + $(this).attr("regexText") + ")"; if ( $(this).attr("regexReplace") == "notag" || $(this).attr("regexReplace") == "NOTAG") { @@ -603,6 +609,12 @@ saveUndoText(); + // skip everything inside "【】", including "【】". + replaceSmartRegexString += "(【[^【】]+(?!.*})】)*"; + replaceSmartReplaceString += "$"+count; + count ++; + // --- + $('#smartRegexShowDiv').children('span').each(function () { replaceSmartRegexString += "(" + $(this).attr("regexText") + ")"; if ( $(this).attr("regexReplace") == "notag" || $(this).attr("regexReplace") == "NOTAG" ) {