Changeset 206


Ignore:
Timestamp:
Jul 12, 2013, 6:37:31 PM (6 years ago)
Author:
tjniskan
Message:

-Fixed a rare regexp related bug in aedes_readjcamp

M aedes_readjcamp.m
M aedes_revision.m

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • aedes_readjcamp.m

    r205 r206  
    7171        end
    7272       
    73         param = regexp(str,'^(.*)=','tokens','once');
    74         param = strrep(param{1},'$','');
     73        % The commented regexp sometimes fails with long strings...
     74        %param = regexp(str,'^(.*)=','tokens','once');
     75        ind = find(str==61); % Find '=' chars...
     76        if isempty(ind)
     77                param='';
     78        else
     79                param=str(1:ind(1)-1);
     80        end
     81        %param = strrep(param{1},'$','');
     82        param = strrep(param,'$','');
    7583        param = l_CheckParameter(param);
    7684       
     
    160168        end
    161169       
     170       
    162171        out = reshape(val_out,[],nRows).';
    163172        return
     
    196205
    197206if isempty(param)
    198         out = [];
     207        out = 'EMPTY_PARAM';
    199208        return
    200209end
  • aedes_revision.m

    r205 r206  
    9393% bash-script every time it is called so that this file "aedes_revision.m" is
    9494% always in the list of committed files. DO NOT EDIT THE NEXT LINE!!!
    95 % - SVN Hook -
     95% - Svn Hook -
Note: See TracChangeset for help on using the changeset viewer.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008