Fix JS lint errors
This commit is contained in:
parent
adfbb835a5
commit
7cc4382d9b
|
@ -18,7 +18,7 @@ export default function permutate (data) {
|
||||||
return words
|
return words
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Permutates strings.
|
* Permutates strings.
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
|
@ -64,7 +64,7 @@ export function permutateWord (str) {
|
||||||
|
|
||||||
export function splitwords (str) {
|
export function splitwords (str) {
|
||||||
const words = str.toLowerCase()
|
const words = str.toLowerCase()
|
||||||
.split(/[ \/\-_]/)
|
.split(/[ /\-_]/)
|
||||||
.filter(k => k && k.length !== 0)
|
.filter(k => k && k.length !== 0)
|
||||||
|
|
||||||
return words
|
return words
|
||||||
|
|
Loading…
Reference in New Issue