Travis build: 597 [cron]

This commit is contained in:
30secondsofcode
2018-10-04 20:18:24 +00:00
parent 0fa5902940
commit c0f5d12fbe
4 changed files with 1882 additions and 71 deletions

View File

@ -391,14 +391,12 @@ Adapted from [here](https://github.com/forrestthewoods/lib_fts/blob/80f3f8c52db5
```js
const isSimilar = (pattern, str) =>
[...str].reduce(
(matchIndex, char) =>
char.toLowerCase() === (pattern[matchIndex] || '').toLowerCase()
? matchIndex + 1
: matchIndex,
0
) === pattern.length
? true
: false;
(matchIndex, char) =>
char.toLowerCase() === (pattern[matchIndex] || '').toLowerCase()
? matchIndex + 1
: matchIndex,
0
) === pattern.length;
```
<details>