8000 Remove periods from unquoted alphanumeric IDs by ferdnyc · Pull Request #419 · pydot/pydot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove periods from unquoted alphanumeric IDs #419

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

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

ferdnyc
Copy link
Member
@ferdnyc ferdnyc commented Sep 20, 2024

Turns out, while periods are valid in ALL-numeric IDs, they're NOT valid in unquoted alphanumeric IDs — a string like "foo.bar" needs to be quoted to parse properly. Fix the ID regular expressions to disallow periods in alphanumeric IDs, and add a unit test to verify that they're properly quoted.

Fixes #418

Turns out, while periods are valid in ALL-numeric IDs, they're NOT
valid in unquoted alphanumeric IDs — a string like "foo.bar" needs
to be quoted to parse properly. Fix the ID regular expressions to
disallow periods in alphanumeric IDs, and add a unit test to
verify that they're properly quoted.

Fixes pydot#418
Copy link

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/pydot
  core.py
  test
  test_pydot.py
Project Total  

This report was generated by python-coverage-comment-action

@lkk7 lkk7 merged commit b358a83 into pydot:main Sep 20, 2024
19 checks passed
@ferdnyc ferdnyc deleted the dot-name-quoting branch September 20, 2024 18:19
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.

Bug in quoting node names with periods in v3.0.1
2 participants
0