You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
269 B
JavaScript
12 lines
269 B
JavaScript
8 years ago
|
import { PREV_LINK_TEXT_RE } from '../constants';
|
||
|
|
||
|
export default function scorePrevLink(linkData) {
|
||
|
// If the link has something like "previous", its definitely
|
||
|
// an old link, skip it.
|
||
|
if (PREV_LINK_TEXT_RE.test(linkData)) {
|
||
|
return -200;
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|