Closed anasilva105 closed 9 months 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
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