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

[BUG] Retrieve/Deploy failing when key is a date #50

Closed
anasilva105 opened this issue Jul 20, 2023 · 1 comment · Fixed by #72
Closed

[BUG] Retrieve/Deploy failing when key is a date #50

anasilva105 opened this issue Jul 20, 2023 · 1 comment · Fixed by #72
Assignees
Labels
bug Something isn't working Done
Milestone

Comments

@anasilva105
Copy link
Collaborator

Retrieve and Deploy are currently failing whenever a key is a date (for example).

To fix this bug it should split the filename by the "metadataype-meta" instead

@anasilva105 anasilva105 added bug Something isn't working NEW not yet analyzed new issues get this label labels Jul 20, 2023
@anasilva105 anasilva105 self-assigned this Jul 20, 2023
@JoernBerkefeld
Copy link
Contributor

JoernBerkefeld commented Jul 20, 2023

try this:

fileName.split(/\.(\w|-)+-meta.json/)[0]

and this

fileName.split(/\.(\w|-)+-doc.md/)[0]
fileName.split(/\.(\w|-)+-meta.html/)[0]
fileName.split(/\.(\w|-)+-meta.sql/)[0]
fileName.split(/\.(\w|-)+-meta.ssjs/)[0]

it's what mcdev uses

@anasilva105 anasilva105 modified the milestones: 0.0.1, 1.0.0 Dec 6, 2023
@anasilva105 anasilva105 added In Testing Done and removed NEW not yet analyzed new issues get this label In Testing labels Dec 13, 2023
@anasilva105 anasilva105 linked a pull request Dec 13, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Done
Projects
None yet
2 participants