mirror of
https://github.com/remoteintech/remote-jobs
synced 2024-12-26 04:13:10 +00:00
Add a couple more validation checks (#456)
This commit is contained in:
parent
7f33cdc825
commit
7b0e9459e7
1 changed files with 17 additions and 0 deletions
17
lib/index.js
17
lib/index.js
|
@ -139,6 +139,23 @@ exports.parseFromDirectory = contentPath => {
|
|||
);
|
||||
}
|
||||
|
||||
if (
|
||||
$td.eq( 1 ).children().length !== 1 ||
|
||||
! $td.eq( 1 ).children().eq( 0 ).is( 'a' )
|
||||
) {
|
||||
readmeError(
|
||||
'Invalid content in Website column: %s',
|
||||
$( tr ).html().replace( /\n/g, '' )
|
||||
);
|
||||
}
|
||||
|
||||
if ( $td.eq( 2 ).children().length > 0 ) {
|
||||
readmeError(
|
||||
'Extra content in Region column: %s',
|
||||
$( tr ).html().replace( /\n/g, '' )
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
lastCompanyName &&
|
||||
readmeEntry.name.toLowerCase() < lastCompanyName.toLowerCase()
|
||||
|
|
Loading…
Reference in a new issue