You need m to match beginning of line (but I see how that may not be all
that necessary) could just use [^\n]* instead of .* as well
On Mar 18, 2014 11:54 PM, "Sebastian Karcher" <notifications@github.com>
wrote:

> In LexisNexis.js:
>
> >  		
> > +		var poststring2 = "screenReaderSupported=false&delRange=cur&selDocs=&exportType=dnldBiblio&disb="+disb[1]+"&initializationPage="+initializationPage[1];
> > +		Z.debug(poststring2);
> > +
> > +		ZU.doPost(urlRis, poststring2, function(text) {
> > +			var risData = text;
> > +			//most authors are saved in N1 tag, correct that:
> > +			text = text.replace(/^N1\s+-\s+(\w.*)$/mg, cleanAuthorFields );
>
> This actually causes a problem when N1 is empty - the next line gets moved
> up. Do you need the m flag here?
>
> see e.g.
> Financial Times (London,England)
> April 20, 1994, Wednesday
> Dedicated followers of factions: The confusing array of candidates in
> Liverpool's elections
> my permalink:
> http://www.lexisnexis.com/lnacui2api/api/version1/getDocCui?lni=3SKR-M7F0-006F-W3S5&csi=293847&hl=t&hv=t&hnsd=f&hns=t&hgn=t&oc=00240&perma=true
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/zotero/translators/pull/698/files#r10737178>
> .
>