import { regEx } from '../../util/regex' ; export const SBT_PLUGINS_REPO = 'https://dl.bintray.com/sbt/sbt-plugin-releases' ; export function parseIndexDir ( content , filterFn = ( x ) : boolean => ! regEx ( /^\.+/ ) . test ( x ) ) { const unfiltered = content . match ( /(?<=href=['"])[^'"]*(?=\/['"])/g ) || [ ] ; return unfiltered . filter ( filterFn ) ; }