projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Security update to Drupal 8.4.6
[yaffs-website]
/
node_modules
/
underscore.string
/
count.js
1
var makeString = require('./helper/makeString');
2
3
module.exports = function(str, substr) {
4
str = makeString(str);
5
substr = makeString(substr);
6
7
if (str.length === 0 || substr.length === 0) return 0;
8
9
return str.split(substr).length - 1;
10
};