import { fullCitationValidatorRE , strictCitekeyValidatorRE , looseCitekeyValidatorRE } from './regex' ; export param { string } citation returns { boolean } export function validateFullCitation ( citation ) { return fullCitationValidatorRE . test ( citation ) ; } export param { string } citation returns { boolean } export function validateCitationPart ( citation ) { return citation . split ( '@' ) . length === 2 ; } export param { string } id param { boolean } strict returns { boolean } export function validateCitationID ( id , strict = false ) { if ( strict ) { return strictCitekeyValidatorRE . test ( id ) ; } else { return looseCitekeyValidatorRE . test ( id ) ; } }