- Timestamp:
- Sep 20, 2017, 6:40:51 PM (9 years ago)
- Branches:
- 0.5, debian/bullseye, debian/jessie, master
- Children:
- 939b309
- Parents:
- 99959fb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/webapp/webservice/inc/GnuBoat/Nmea/Nmea0183/Parser.php
r99959fb r74f0621 80 80 81 81 $matches = array(); 82 $result = preg_match('/^[ \$!]{1}([\w]{2})([\w]{3})([^\*]+)\*([\da-zA-Z]+)$/', $sentence, $matches);82 $result = preg_match('/^[^\$!]{0,}[\$!]{1}([\w]{2})([\w]{3})([^\*]+)\*([\da-zA-Z]+)$/', $sentence, $matches); 83 83 if($result === false || $result != 1 || count($matches) != 5){ 84 84 $message = "Could not detect talker, type and checksum from ". $sentence;
Note:
See TracChangeset
for help on using the changeset viewer.
