UNPKG

react-native-code-push-plugin

Version:

Config plugin to auto configure react-native-code-push on prebuild

12 lines 522 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.replaceIfNotFound = void 0; function replaceIfNotFound(originalString, stringToBeReplaced, newStringToReplace) { // Make sure the original does not contain the new string if (!originalString.includes(newStringToReplace)) { return originalString.replace(stringToBeReplaced, newStringToReplace); } return originalString; } exports.replaceIfNotFound = replaceIfNotFound; //# sourceMappingURL=replaceIfNotFound.js.map