Closed r3wald closed 8 years ago
@r3wald Could we be more precise and focus on = char only at the end of the metar string ? Like this:
$clean_metar = preg_replace('#=$#', '', trim($raw_metar));
That's ok with me. Do I have to make a new PR? Don't know Github that well.
No you don't have to make a new PR. You can add a commit to your branch (and push it), it will automatically appear here
I probably messed it up when pushing. Please have a look at https://github.com/r3wald/php-metar-decoder/tree/remotes/composer/feature-remove-end-of-message.
I see: I pushed to the wrong branch.
Do you want to submit it again ?
OK, did it.
Perfect, thanks for your contribution !
METAR messages from DWD (German Meteorological Service) often include 'end of message' characters, e.g.
With this patch these will be ignored.