From b596bf0ca54a8082ee0781f10dd17e6b3949afb9 Mon Sep 17 00:00:00 2001 From: Sean Date: Thu, 10 Sep 2020 17:35:18 +0200 Subject: [PATCH] Show amendments change reco in main motion Fixes a bug which was preventing change recos from amendments to display in main motions --- client/src/app/core/ui-services/linenumbering.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/core/ui-services/linenumbering.service.ts b/client/src/app/core/ui-services/linenumbering.service.ts index 0a8936be3..1b316a7e7 100644 --- a/client/src/app/core/ui-services/linenumbering.service.ts +++ b/client/src/app/core/ui-services/linenumbering.service.ts @@ -138,7 +138,7 @@ export class LinenumberingService { private ignoreInsertedText = false; // A precompiled regular expression that looks for line number nodes in a HTML string - private getLineNumberRangeRegexp = RegExp(/]+data\-line\-number=\"(\d+)\"/, 'g'); + private getLineNumberRangeRegexp = RegExp(/]+data\-line\-number=\"(\d+)\"/, 'gi'); // .setAttribute and .innerHTML seem to be really slow, so we try to avoid them for static attributes / content // by creating a static template, cloning it and only set the dynamic attributes each time