changeset 80:c15f53afd7a5 extractapp

Bug fixed: skiping everything inside '??', including '??'
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Tue, 21 Apr 2015 16:41:36 +0200
parents e6e213b26454
children f1f849d31272
files js/taggingtext.js
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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" ) {