Sign in
apache
/
nifi-fds
/
954e729fbbf531ccabbbc6d1c1c2ea6135b371eb
/
.
/
node_modules
/
underscore.string
/
chop.js
blob: 73e17eb7cc54b4d4fe703288c9f1a45047ce0b5e [
file
] [
log
] [
blame
]
module
.
exports
=
function
chop
(
str
,
step
)
{
if
(
str
==
null
)
return
[];
str
=
String
(
str
);
step
=
~~
step
;
return
step
>
0
?
str
.
match
(
new
RegExp
(
'.{1,'
+
step
+
'}'
,
'g'
))
:
[
str
];
};