Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
08e8bb04
Unverified
Commit
08e8bb04
authored
Jun 25, 2020
by
Benjamin Wheeler
Committed by
GitHub
Jun 25, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4125 from apple502j/patch-21
Fix welcomingcommittee mention link href
parents
a5e0fbc1
927a4b91
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/lib/decorate-text.jsx
src/lib/decorate-text.jsx
+1
-1
No files found.
src/lib/decorate-text.jsx
View file @
08e8bb04
...
@@ -24,7 +24,7 @@ module.exports = (text, opts) => {
...
@@ -24,7 +24,7 @@ module.exports = (text, opts) => {
if
(
opts
.
usernames
)
{
if
(
opts
.
usernames
)
{
replacedText
=
reactStringReplace
(
replacedText
,
/@
([\w
-
]
+
)
/g
,
(
match
,
i
)
=>
(
replacedText
=
reactStringReplace
(
replacedText
,
/@
([\w
-
]
+
)
/g
,
(
match
,
i
)
=>
(
<
a
<
a
href=
{
`/users/${match}`
}
href=
{
match
.
toLowerCase
()
===
'
welcomingcommittee
'
?
'
/studios/146521/
'
:
`/users/${match}`
}
key=
{
match
+
i
}
key=
{
match
+
i
}
>
@
{
match
}
</
a
>
>
@
{
match
}
</
a
>
));
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment