From 0970f7eb2bfcad4c474f50616cb49430b3f5fc6d Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Tue, 21 Apr 2015 16:59:09 +0430 Subject: [PATCH] fix helpers: removeSymbols should convert argument to string to avoid `undefined is not a function` errors --- lib/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers.js b/lib/helpers.js index 9be7820..b254c31 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -74,5 +74,5 @@ export const flatten = (arr) => { }; export const removeSymbols = string => { - return string.replace(/\W/g, ''); + return string.toString().replace(/\W/g, ''); };