Lines Matching refs:replace
101 assert ("str?fgh".replace(/(?:)/gu, "x") === 'xsxtxrx?xfxgxhx');
102 assert ("str?fgh".replace(/(?:)/g, "x") === 'xsxtxrx\ud803x\udca1xfxgxhx');
108 assert ("str?fgh".replace(r, "x") === 'xsxtxrx?xfxgxhx');
110 assert ("str?fgh".replace(r, "x") === 'xsxtxrx\ud803x\udca1xfxgxhx');
119 assert ("asd".replace(r, "x") === "xaxsxdx");
123 assert ("asd".replace(r, "x") === "xaxsxdx");
128 assert ("asd".replace(r, "x") === "asxd");
132 assert ("asd".replace(r, "x") === "asd");
138 assert ("asd".replace(r, "x") === "asxd");
142 assert ("asd".replace(r, "x") === "asd");