Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
Browse files Browse the repository at this point in the history
…-ref HEAD~1..HEAD --fix'
  • Loading branch information
kibanamachine committed Nov 17, 2022
1 parent 516ab3b commit 0390e56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,14 @@ describe('Jira service', () => {
// getIssueType mocks
requestMock.mockImplementationOnce(() =>
createAxiosResponse({
data: { id: '1', key: 'CK-1', fields: { summary: '[th!s^is()a-te+st-{~is*s|ue?or&and\\bye:}]', description: 'description' } },
data: {
id: '1',
key: 'CK-1',
fields: {
summary: '[th!s^is()a-te+st-{~is*s|ue?or&and\\bye:}]',
description: 'description',
},
},
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ export const createExternalService = (
}, '');
};

const escapeSpecialCharacters = (str: string) => str.replace(/[!^&*()+\-[\]\\/{}|:?~]/g, '\\\\$&')?.replace(/-/g, '\\\\x2d');
const escapeSpecialCharacters = (str: string) =>
str.replace(/[!^&*()+\-[\]\\/{}|:?~]/g, '\\\\$&')?.replace(/-/g, '\\\\x2d');

const hasSupportForNewAPI = (capabilities: { capabilities?: {} }) =>
createMetaCapabilities.every((c) => Object.keys(capabilities?.capabilities ?? {}).includes(c));
Expand Down

0 comments on commit 0390e56

Please sign in to comment.