Fix line endings broken by 71b3afb
GetResStr: Match lines nongreedily (#993)

With greedy matching enabled, . (dot) would also match newlines.