replace-last
Version:
JavaScript replaceLast function - Replaces last match for pattern in string with replacement
25 lines (20 loc) • 524 B
HTML
<html>
<head>
<meta charset="utf-8">
<title>replace-last</title>
<link rel="stylesheet" href="node_modules/mocha/mocha.css">
</head>
<body>
<div id="mocha"></div>
<script src="node_modules/lodash/lodash.js"></script>
<script src="node_modules/chai/chai.js"></script>
<script src="node_modules/mocha/mocha.js"></script>
<script>mocha.setup('bdd');</script>
<script src="replaceLast.js"></script>
<script src="js/replaceLast.spec.js"></script>
<script>
mocha.checkLeaks();
mocha.run();
</script>
</body>
</html>