I want to be more restrictive with my split
by only take the string that is given. I mean it should replace only the string that is given, not the one with _dyna
.
I don't know how to convert my split to resolve that.
My wish is respect caps and only if the string is the same as the given one
I think it's only possible to respect caps but maybe someone here know how to do all I want to do
var base = "depends_on: - tomato-app - guacamole_dyna - GUACAMOLE - guacamole - guAcamole"
var newStr = base.split("guacamole").join("newstring");
console.log(newStr)