Accenture / sfmc-devtools-vscode

Accenture SFMC DevTools for VS Code
https://marketplace.visualstudio.com/items?itemName=Accenture-oss.sfmc-devtools-vscode
MIT License
5 stars 2 forks source link

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

Closed anasilva105 closed 9 months ago

anasilva105 commented 1 year ago

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

JoernBerkefeld commented 1 year ago

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