Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
352
Merge Requests
54
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
267e8228
Commit
267e8228
authored
29 minutes ago
by
Ben Hayward
Browse files
Options
Download
Simplified RegExp
parent
bbd796c7
fix/external-pages-regex-2133
1 merge request
!702
Fixed pattern matching for external and internal page links #2133
Pipeline
#106855149
failed with stages
in 27 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/app/common/services/pages.service.ts
View file @
267e8228
...
...
@@ -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
()
{}
...
...
This diff is collapsed.
Please
register
or
sign in
to comment