lib/tacview_client/reader/parser.rb in tacview_client-0.1.0 vs lib/tacview_client/reader/parser.rb in tacview_client-0.1.1
- old
+ new
@@ -13,10 +13,10 @@
# See https://www.tacview.net/documentation/acmi/en/ for information
# of the Tacview ACMI format this module is parsing
# @private
class Parser
HEX_NUMBER = /\h+/.freeze
- OPTIONALLY_DECIMAL_NUMBER = /\d+\.?\d+/.freeze
+ OPTIONALLY_DECIMAL_NUMBER = /-?\d+\.?\d+/.freeze
POSITION_START_INDICATOR = /T=/.freeze
POSITION_SEPARATOR = /\|/.freeze
FIELD_SEPARATOR = /,/.freeze
END_OF_FILE = /$/.freeze
END_OF_FIELD = Regexp.union(FIELD_SEPARATOR, END_OF_FILE)