Show
Ignore:
Timestamp:
01/16/06 19:25:20 (3 years ago)
Author:
audreyt
Message:

* Prim.Match: When rx:P5/(...)?/ captures nothing, do not set

the submatch variable into something that has a true boolean
values. Reported by yiyihu.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim/Match.hs

    r7925 r8708  
    5353        substr str from len = take len (drop from str) 
    5454        subsMatch = [ 
    55             VMatch $ mkMatchOk 
     55            VMatch $ if fBytes == -1 then mkMatchFail else mkMatchOk 
    5656                fChars (fChars + lChars) 
    5757                (substr csChars fChars lChars)