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