diff options
Diffstat (limited to 'src/interp/match.boot')
-rw-r--r-- | src/interp/match.boot | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interp/match.boot b/src/interp/match.boot index 97e139ab..7e8144f9 100644 --- a/src/interp/match.boot +++ b/src/interp/match.boot @@ -1,6 +1,6 @@ -- Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd. -- All rights reserved. --- Copyright (C) 2007-2010, Gabriel Dos Reis. +-- Copyright (C) 2007-2012, Gabriel Dos Reis. -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without @@ -73,8 +73,8 @@ rightCharPosition(c,t,startpos) == --startpos often equals maxIndex t (rightmost stringPosition(s,t,startpos) == n := # t if startpos < 0 or startpos > n then error '"index out of range" - if # s = 0 then return startpos -- bug in STRPOS - r := STRPOS(s,t,startpos,nil) + if # s = 0 then return startpos + r := findString(s,t,startpos) if r = nil then n else r superMatch?(opattern,subject) == --subject assumed to be DOWNCASEd |