Skip to content

Commit 9280ce6

Browse files
authored
Fix remove and removeFirst helpers.
1 parent 8c57d09 commit 9280ce6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/string.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,8 @@ helpers.raw = function(options) {
411411
*/
412412

413413
helpers.remove = function(str, ch) {
414-
if (!utils.isString(str)) return '';
415-
if (!utils.isString(ch)) return str;
414+
if (!util.isString(str)) return '';
415+
if (!util.isString(ch)) return str;
416416
return str.split(ch).join('');
417417
};
418418

@@ -430,8 +430,8 @@ helpers.remove = function(str, ch) {
430430
*/
431431

432432
helpers.removeFirst = function(str, ch) {
433-
if (!utils.isString(str)) return '';
434-
if (!utils.isString(ch)) return str;
433+
if (!util.isString(str)) return '';
434+
if (!util.isString(ch)) return str;
435435
return str.replace(ch, '');
436436
};
437437

0 commit comments

Comments
 (0)