Changeset 3631 for proto/RE


Ignore:
Timestamp:
Feb 21, 2014, 5:40:47 PM (5 years ago)
Author:
cameron
Message:

Append newline to end of each input line for matching with $

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/RE/Haskell/hgrep.hs

    r3616 r3631  
    2121search_all(re, [])  = []
    2222search_all(re, line1:more)
    23   | searchRE(re, line1) == Bitstream 0    = search_all(re, more)
     23  | searchRE(re, line1 ++ "\n") == Bitstream 0    = search_all(re, more)
    2424  | otherwise                             = line1:(search_all(re, more))
    2525
Note: See TracChangeset for help on using the changeset viewer.