1
1
mirror of https://github.com/primer/css.git synced 2024-11-23 03:10:10 +03:00

global flag on matchAll

This commit is contained in:
Jon Rohan 2022-04-20 11:46:38 -07:00 committed by GitHub
parent 34243054b2
commit 06cd5a551c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ jobs:
script: |
const diff_url = context.payload.pull_request.diff_url
const result = await github.request(diff_url)
const match = [...result.data.matchAll(/^\+['"]@primer\/css['"]:\s(patch|minor|major)/m)]
const match = [...result.data.matchAll(/^\+['"]@primer\/css['"]:\s(patch|minor|major)/mg)]
if (match && match[0]) {
return match[0][1]
}