Changeset 3820


Ignore:
Timestamp:
Sep 6, 2010, 2:57:32 PM (13 years ago)
Author:
Fredrik Levander
Message:

Refs #701. Updated string matching to so that <contact not matches <contactInfo but <contact> or <contact ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugin/src/org/proteios/plugins/PrideExportPlugin.java

    r3819 r3820  
    33543354      // selectedXMLBlockStartLinePattern example: ".*<mzData.*"
    33553355      String selectedXMLBlockStartLinePattern = new String(
    3356         ".*<" + selectedXmlTagName + ".*");
     3356        ".*<" + selectedXmlTagName + "[\\s>].*");
    33573357      // selectedXMLBlockStartTagPattern example: "<mzData"
    33583358      String selectedXMLBlockStartTagPattern = new String(
     
    33913391          {
    33923392            int startTagIndex = currentLine
    3393               .indexOf(selectedXMLBlockStartTagPattern);
     3393              .indexOf(selectedXMLBlockStartTagPattern+" ");
     3394            if (startTagIndex<0)
     3395            {
     3396              startTagIndex = currentLine
     3397              .indexOf(selectedXMLBlockStartTagPattern+">");
     3398            }
    33943399            if (startTagIndex >= 0)
    33953400            {
Note: See TracChangeset for help on using the changeset viewer.