Commit 267e8228 authored by Ben Hayward's avatar Ben Hayward

Simplified RegExp

1 merge request!702Fixed pattern matching for external and internal page links #2133
Pipeline #106855149 failed with stages
in 27 minutes and 27 seconds
......@@ -8,7 +8,7 @@ import { Injectable } from '@angular/core';
*/
@Injectable()
export class PagesService {
private internalPageRegex: RegExp = /^p\/.+$/gm; // matches 'p/' in first and second position.
private internalPageRegex: RegExp = /^\/?p\/./; // matches 'p/' in first and second position.
constructor() {}
......
Please register or to comment