import{validation}from"../../Validation.js";class TextReplace{execute(e){const a=validation.string("text",e.text,validation.never),t=validation.string("oldValue",e.oldValue,validation.never);var l=validation.string("newValue",e.newValue,""),e=t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"),e=new RegExp(e,"g");return{result:a.replace(e,l)}}}TextReplace.action="gcx:wf:core::TextReplace",TextReplace.suite="gcx:wf:builtin";export{TextReplace};