Skip to content

Commit

Permalink
#22 Support different line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechRynczuk committed May 30, 2017
1 parent 6799031 commit b7a554d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sources/common/inc/EventSignalCreator.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace PARSER

/// The event signal creator constructor.
EventSignalCreator() :
SignalCreator("^#([[:d:]]+) ([[:graph:]]+) e")
SignalCreator("^#([[:d:]]+) ([[:graph:]]+) e .*")
{
}

Expand Down
2 changes: 1 addition & 1 deletion sources/common/inc/FSignalCreator.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace PARSER

/// The real signal creator constructor.
FSignalCreator() :
SignalCreator("^#([[:d:]]+) ([[:graph:]]+) ([[:d:][:punct:]]+) f.*$")
SignalCreator("^#([[:d:]]+) ([[:graph:]]+) ([[:d:][:punct:]]+) f .*")
{
}

Expand Down
2 changes: 1 addition & 1 deletion sources/common/inc/ISignalCreator.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace PARSER
public:
/// The integer signal creator constructor.
ISignalCreator() :
SignalCreator("^#([[:d:]]+) ([[:graph:]]+) ([[:d:]]+) ([[:d:]]+).*$")
SignalCreator("^#([[:d:]]+) ([[:graph:]]+) ([[:d:]]+) ([[:d:]]+) .*")
{
}

Expand Down
2 changes: 1 addition & 1 deletion sources/common/inc/SignalCreator.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace PARSER
/// which will be matched against the log line.
/// @param signalRegEx The regular expression to be matech against the log line.
SignalCreator(const std::string &signalRegEx) :
m_SignalRegEx(signalRegEx)
m_SignalRegEx(signalRegEx + "\r?\n")
{
}

Expand Down

0 comments on commit b7a554d

Please sign in to comment.