Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
substrate-tip-bot
Commits
499b9206
Commit
499b9206
authored
Sep 22, 2021
by
Shawn Tabrizi
Browse files
catch undefined error
parent
b9e25fd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.js
View file @
499b9206
...
...
@@ -49,7 +49,7 @@ module.exports = (app) => {
// match "polkadot address: <ADDRESS>"
let
addressRegex
=
/
(
polkadot|kusama|localtest
)
address:
\s?([
a-z0-9
]
+
)
/i
;
let
maybeMatch
=
pullRequestBody
.
match
(
addressRegex
);
if
(
maybeMatch
.
length
!=
3
)
{
if
(
!
maybeMatch
||
maybeMatch
.
length
!=
3
)
{
problemsText
.
push
(
`Contributor did not properly post their Polkadot or Kusama address. Make sure the pull request has: "{network} address: {address}".`
);
}
else
{
network
=
maybeMatch
[
1
].
toLowerCase
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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