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

Snapshot filename special character scrub needed - semicolon #83

Open
jf-tech opened this issue Sep 16, 2022 · 0 comments
Open

Snapshot filename special character scrub needed - semicolon #83

jf-tech opened this issue Sep 16, 2022 · 0 comments

Comments

@jf-tech
Copy link

jf-tech commented Sep 16, 2022

A recent commit jf-tech/omniparser@1b4997b introduced a snapshot filename containing ;. While itself is fine, i.e. running tests is all good, we ran into issues when the module being imported by 3rd party, hitting an error:

extensions/omniv21/fileformat/flatfile/fixedlength/.snapshots/TestReadAndMatchHeaderFooterBasedEnvelope-empty_buf;_single_line_header-footer_match: malformed file path "extensions/omniv21/fileformat/flatfile/fixedlength/.snapshots/TestReadAndMatchHeaderFooterBasedEnvelope-empty_buf;_single_line_header-footer_match": invalid char ';'

Turns out ; isn't allowed in module filepath: https://cs.opensource.google/go/x/mod/+/master:module/module.go;l=285;drc=02c991387e35f9e4c0a9b7ce137717055f8d716d

Your library already does many of the special character replacement during snapshot file creation. Wondering if ; semicolon can be added?

Cheers!

jf-tech added a commit to jf-tech/omniparser that referenced this issue Sep 16, 2022
jf-tech added a commit to jf-tech/omniparser that referenced this issue Sep 16, 2022
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

No branches or pull requests

1 participant