Skip to content

Commit 464e527

Browse files
chore: replace deprecated String.prototype.substr()
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated Signed-off-by: Tobias Speicher <[email protected]>
1 parent 2a91893 commit 464e527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions-scripts/projects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export function generateUpdateProjectNextItemFieldMutation({
190190
// Strip all non-alphanumeric out of the item ID when creating the mutation ID to avoid a GraphQL parsing error
191191
// (statistically, this should still give us a unique mutation ID)
192192
return `
193-
set_${fieldID.substr(1)}_item_${item.replaceAll(
193+
set_${fieldID.slice(1)}_item_${item.replaceAll(
194194
/[^a-z0-9]/g,
195195
''
196196
)}: updateProjectNextItemField(input: {

0 commit comments

Comments
 (0)