This only handles " because that's what the current quoted string does. If it doesn't start with ", it implements the "word" functionality (which I shamelessly copied). The idea is to capture inputs where the source system only quotes it if it contains a space, but leaves it unquoted otherwise. Example: No data = - One Word = word Two words+ = "Two Words"
The function should handle all three. Chris On Mon Jan 26 2015 at 4:36:25 PM David Lang <[email protected]> wrote: > does this handle embedded quotes in the string? and do you handle strings > starting with ' and " or just one of them? > > David Lang > > On Tue, 27 Jan 2015, Chris Schafer wrote: > > > Date: Tue, 27 Jan 2015 00:30:54 +0000 > > From: Chris Schafer <[email protected]> > > Reply-To: rsyslog-users <[email protected]> > > To: [email protected] > > Subject: [rsyslog] New Pull request for liblognorm - additional > mmnormalize > > functionality > > > > Just submitted the following pull request: > > https://github.com/rsyslog/liblognorm/pull/20 > > And I believe it could solve a lot of issues (at least, it solves a lot > of > > mine) surrounding mmnormalize parsing in rsyslog. I'm looking for > > comments/issues/holy-crap-you-can't-code-what-are-you-doing, if you guys > > have any. This is my first time submitting a patch to a large project (or > > at least one where I didn't know the maintainer personally), so be gentle > > please :) > > > > Chris > > _______________________________________________ > > rsyslog mailing list > > http://lists.adiscon.net/mailman/listinfo/rsyslog > > http://www.rsyslog.com/professional-services/ > > What's up with rsyslog? Follow https://twitter.com/rgerhards > > NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad > of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you > DON'T LIKE THAT. > > > _______________________________________________ > rsyslog mailing list > http://lists.adiscon.net/mailman/listinfo/rsyslog > http://www.rsyslog.com/professional-services/ > What's up with rsyslog? Follow https://twitter.com/rgerhards > NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad > of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you > DON'T LIKE THAT. > _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

