Move matchesWholeWord into mathing file

This commit is contained in:
Sam Carlton 2021-03-04 20:44:23 -06:00
parent a5333b1939
commit c2bb2d9787
3 changed files with 7 additions and 8 deletions

View file

@ -2,12 +2,9 @@
import slugify from 'slugify'
import axios from 'axios'
import { matchesWholeWord } from './matching.js'
import { byTimeThenNull } from './sort-list.js'
import { getVideoEndpoint } from './app-derived.js'
export function matchesWholeWord (needle, haystack) {
return new RegExp('\\b' + needle + '\\b').test(haystack)
}
import parseDate from './parse-date'
const videoFeaturesApp = function (app, video) {