Fix JS lint errors

This commit is contained in:
Rico Sta. Cruz 2018-02-16 01:01:56 +08:00
parent adfbb835a5
commit 7cc4382d9b
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ export default function permutate (data) {
return words
}
/*
/**
* Permutates strings.
*
* @example
@ -64,7 +64,7 @@ export function permutateWord (str) {
export function splitwords (str) {
const words = str.toLowerCase()
.split(/[ \/\-_]/)
.split(/[ /\-_]/)
.filter(k => k && k.length !== 0)
return words