Changeset 1aa2b1a


Ignore:
Timestamp:
Oct 24, 2006, 1:10:49 AM (17 years ago)
Author:
Alex Vandiver <alexmv@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
908e388
Parents:
1152d45
Message:
Default narrows are un- and .d-aware
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rc0a90c2 r1aa2b1a  
    26102610    owl_text_tr(tmpinstance, ' ', '.');
    26112611  }
    2612   sprintf(argbuff, "( class ^%s$ )", tmpclass);
     2612  sprintf(argbuff, "( class ^(un)*%s(\\.d)*$ )", tmpclass);
    26132613  if (tmpinstance) {
    2614     sprintf(argbuff, "%s and ( instance ^%s$ )", argbuff, tmpinstance);
     2614    sprintf(argbuff, "%s and ( instance ^%s(\\.d)*$ )", argbuff, tmpinstance);
    26152615  }
    26162616  owl_free(tmpclass);
     
    29892989    quoted=owl_text_quote(class, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
    29902990    owl_text_tr(quoted, ' ', '.');
    2991     sprintf(buff, "%s ^%s$", buff, quoted);
     2991    sprintf(buff, "%s ^(un)*%s(\\.d)*$", buff, quoted);
    29922992    owl_free(quoted);
    29932993  }
     
    29972997    quoted=owl_text_quote(inst, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
    29982998    owl_text_tr(quoted, ' ', '.');
    2999     sprintf(buff, "%s and instance ^%s$", buff, quoted);
     2999    sprintf(buff, "%s and instance ^(un)*%s(\\.d)*$", buff, quoted);
    30003000    owl_free(quoted);
    30013001  }
Note: See TracChangeset for help on using the changeset viewer.