Skip to content

Commit

Permalink
fix: global replace spaces in key id (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygriffiths authored Dec 13, 2021
1 parent 9835d9b commit b139de7
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().replace(' ', '')
const jirakey = core.getInput('jirakey').toLowerCase().replace(/ /g, '')
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 b139de7

Please sign in to comment.