mirror of
https://github.com/actions/add-to-project.git
synced 2025-12-12 13:07:21 +00:00
Fix regex pattern in @octokit/request files for correct operator precedence
This commit is contained in:
@@ -24,7 +24,7 @@ for (const filePath of filesToFix) {
|
|||||||
const originalContent = content
|
const originalContent = content
|
||||||
|
|
||||||
// Fix the problematic regex pattern - replace the end anchor version with the fixed version
|
// Fix the problematic regex pattern - replace the end anchor version with the fixed version
|
||||||
content = content.replace(/charset=utf-8\$\//g, 'charset=utf-8/')
|
content = content.replace(/^text\/|charset=utf-8$\//g, '/^(text\/|charset=utf-8)$/')
|
||||||
|
|
||||||
if (content !== originalContent) {
|
if (content !== originalContent) {
|
||||||
fs.writeFileSync(filePath, content, 'utf8')
|
fs.writeFileSync(filePath, content, 'utf8')
|
||||||
|
|||||||
Reference in New Issue
Block a user