@agility/content-sync 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11804,7 +11804,7 @@ var waitOnLock = /*#__PURE__*/function () {var _ref12 = _asyncToGenerator( /*#__
|
|
|
11804
11804
|
//private function to get path of an item
|
|
11805
11805
|
var getFilePath = function getFilePath(_ref13) {var options = _ref13.options,itemType = _ref13.itemType,languageCode = _ref13.languageCode,itemID = _ref13.itemID;
|
|
11806
11806
|
if (typeof itemID === 'string' || itemID instanceof String) {
|
|
11807
|
-
itemID = itemID.replace(/[
|
|
11807
|
+
itemID = itemID.replace(/[`!@#$%^&*()+\=\[\]{};':"\\|,.<>\/?~]/g, "");
|
|
11808
11808
|
}
|
|
11809
11809
|
var fileName = "".concat(itemID, ".json");
|
|
11810
11810
|
return path.join(options.rootPath, languageCode, itemType, fileName);
|
package/package.json
CHANGED
|
@@ -185,7 +185,7 @@ const waitOnLock = async (lockFile) => {
|
|
|
185
185
|
//private function to get path of an item
|
|
186
186
|
const getFilePath = ({ options, itemType, languageCode, itemID }) => {
|
|
187
187
|
if(typeof itemID === 'string' || itemID instanceof String){
|
|
188
|
-
itemID = itemID.replace(/[
|
|
188
|
+
itemID = itemID.replace(/[`!@#$%^&*()+\=\[\]{};':"\\|,.<>\/?~]/g, "");
|
|
189
189
|
}
|
|
190
190
|
const fileName = `${itemID}.json`;
|
|
191
191
|
return path.join(options.rootPath, languageCode, itemType, fileName);
|