IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31279 for trunk/ippToPsps


Ignore:
Timestamp:
Apr 14, 2011, 1:25:27 PM (15 years ago)
Author:
rhenders
Message:

Writing comment to votable file; now picking up '_' characters in field names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/perl/pspsSchema2xml.pl

    r31108 r31279  
    307307
    308308    # parse line
    309     if ($line =~ m/\s*([a-zA-Z0-9()-\[\]]+)\s+(.*)\s*--\/(.*)/) {
     309    if ($line =~ m/\s*([a-zA-Z0-9()-_\[\]]+)\s+(.*)\s*--\/(.*)/) {
    310310
    311311        $name = $1;
     
    320320    }
    321321    # no comment case
    322     elsif ($line =~ m/\s*([a-zA-Z0-9()-\[\]]+)\s+(.*)/) {
     322    elsif ($line =~ m/\s*([a-zA-Z0-9()-_\[\]]+)\s+(.*)/) {
    323323
    324324        $name = $1;
     
    394394            "arraysize" => $arraySize,
    395395            "datatype" => $votType);
     396    $votWriter->dataElement('DESCRIPTION', $comment);
    396397    $votWriter->endTag();
    397398
Note: See TracChangeset for help on using the changeset viewer.