danikf / tik4net

Manage mikrotik routers with .NET C# code via ADO.NET like API or enjoy O/R mapper like highlevel api.
Apache License 2.0
174 stars 93 forks source link

Script source code #17

Closed pmishka closed 7 years ago

pmishka commented 7 years ago

Hello! here is a small bug when you try to get script content. If script contains \r\n - regex doesn't work thinking that script source is multiline. Here is my fix: public ApiSentence(IEnumerable words) { Regex keyValueRegex = new Regex("^=?(?[^=]+)=(?.*)$", RegexOptions.Singleline); foreach(string word in words) { ... } }

danikf commented 7 years ago

Halo,

thank you! Integrated into source code.

D

2017-03-29 16:25 GMT+02:00 pmishka notifications@github.com:

Hello! here is a small bug when you try to get script content. If script contains \r\n - regex doesn't work thinking that script source is multiline. Here is my fix: public ApiSentence(IEnumerable words) { Regex keyValueRegex = new Regex("^=?(?[^=]+)=(?.)$", RegexOptions.Singleline*); foreach(string word in words) { ... } }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/danikf/tik4net/issues/17, or mute the thread https://github.com/notifications/unsubscribe-auth/ANIZGl1R5kRMzMf1KgTfIGMhXLR-mvLuks5rqmnDgaJpZM4MtDrm .