Skip to content

Conversation

@outslept
Copy link

No description provided.

Comment on lines +55 to +61
const next2 = src.slice(end, end + 2);
if (next2 === '\r\n') {
end += 2;
} else {
const next1 = src[end];
if (next1 === '\n' || next1 === '\r') end += 1;
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really like this part. Maybe there's a better way to do this?

@outslept outslept changed the title feat: migrated pad-left codemod from jscodeshift to ast-grep feat: migrate pad-left codemod from jscodeshift to ast-grep Oct 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant