Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not properly spacing commas #72

Closed
mogsdad opened this issue Nov 10, 2015 · 0 comments
Closed

Not properly spacing commas #72

mogsdad opened this issue Nov 10, 2015 · 0 comments
Assignees
Labels

Comments

@mogsdad
Copy link
Collaborator

mogsdad commented Nov 10, 2015

This rule should provide spacing after commas:

        symbol_then_space: {  // https://regex101.com/r/jB5aN0/4
            expr: /(?:[ \t]+([.,!?;:])(?:[ \t]+|$)|[ \t]+([,!?;:])(?=\w)|([a-z][,!?;:])(?=\w))/gim,
            replacement: "$1$2 ",
            reason: App.consts.reasons.grammar
        },

The regex in the comma does identify the target commas, see the forked regex:

However when run using 1.5.2.38, none of those commas get replaced.

@mogsdad mogsdad added the bug label Nov 10, 2015
@mogsdad mogsdad self-assigned this Nov 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant