1
0
mirror of https://github.com/ZetaKebab/MpcNET.git synced 2025-07-02 00:57:38 +00:00

Line pattern extended. New commands in test app.

This commit is contained in:
glucaci
2016-12-06 18:18:06 +01:00
parent 53325604e8
commit 4a176e8f45
4 changed files with 10 additions and 91 deletions

View File

@ -13,7 +13,7 @@ namespace LibMpc
public class MpdMessage<T> : IMpdMessage<T>
{
private readonly Regex _linePattern = new Regex("^(?<key>[A-Za-z]*):[ ]{0,1}(?<value>.*)$");
private readonly Regex _linePattern = new Regex("^(?<key>[A-Za-z_]*):[ ]{0,1}(?<value>.*)$");
private readonly IList<string> _rawResponse;
public MpdMessage(IMpcCommand<T> command, bool connected, IReadOnlyCollection<string> response)