Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compendium-v2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
compendium-v2
Merge requests
!74
Feature/comp 274 traffic volume page
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/comp 274 traffic volume page
feature/COMP-274_traffic_volume_page
into
develop
Overview
0
Commits
8
Pipelines
0
Changes
4
Merged
Remco Tukker
requested to merge
feature/COMP-274_traffic_volume_page
into
develop
1 year ago
Overview
0
Commits
8
Pipelines
0
Changes
4
Expand
a basic page with (1 of the 4) traffic volume numbers
0
0
Merge request reports
Viewing commit
baa43872
Prev
Next
Show latest version
4 files
+
24
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
baa43872
Merge branch 'develop' into feature/COMP-274_traffic_volume_page
· baa43872
Remco Tukker
authored
1 year ago
compendium_v2/publishers/helpers.py
+
2
−
1
Options
@@ -6,7 +6,8 @@ from sqlalchemy import select
from
compendium_v2.db
import
db
,
model
URL_PATTERN
=
re
.
compile
(
r
'
\b(https?://[^\s<>
"
;,(){}\[\]!\\]+|www\.[^\s<>
"
;,(){}\[\]!\\]+|[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4})\b(?=\s|\b|[,!?.;:\\])
'
(
r
'
\b(https?://[^\s<>
"
;,(){}\[\]!\\]+|www\.[^\s<>
"
;,(){}\[\]!
'
r
'
\\]+|[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4})\b(?=\s|\b|[,!?.;:\\])
'
)
)
Loading