massive-oss / mcover

A cross platform code coverage framework for Haxe with testing and profiling applications. Supports AVM1, AVM2, JavaScript, C++, PHP and Neko.
Other
59 stars 9 forks source link

fixed line number detection #46

Closed AlexHaxe closed 5 years ago

AlexHaxe commented 5 years ago

Replacing chararacters with chars was only done for startLine, not endLine. So startLine would never match posReg regex with position strings containing characters, and usually end up as -1.

I also adjusted posReg, but I'm not sure, if those .* were in there because of some systems/targets reporting weird numbers...