Skip to content

Commit

Permalink
task: remove spaces in input (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygriffiths authored Dec 11, 2021
1 parent 8db5939 commit 9835d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const core = require('@actions/core');
const github = require('@actions/github');

try {
const jirakey = core.getInput('jirakey').toLowerCase()
const jirakey = core.getInput('jirakey').toLowerCase().replace(' ', '')
const pattern = '^(build|ci|chore|docs|feat|fix|perf|refactor|revert|style|task|test)(.*)(:\\s)(' + jirakey + '-\\d+\\s*|none)+(:)'
const regex = new RegExp(pattern)
if (github.context.payload && github.context.payload.pull_request) {
Expand Down

0 comments on commit 9835d9b

Please sign in to comment.