export const USELESS_TAG = [ 'style' , 'script' , 'link' , 'video' , 'iframe' , 'source' , 'picture' , 'header' ] ; export const TAGS_CAN_BE_REMOVE_IF_EMPTY = [ 'section' , 'h1' , 'h2' , 'h3' , 'h4' , 'h5' , 'h6' , 'span' ] ; export const TAGS_CAN_NOT_BE_REMOVE_IF_EMPTY = [ 'span' , 'em' , 'p' , 'i' ] ; export const USELESS_ATTR = [ 'share' , 'contribution' , 'copyright' , 'disclaimer' , 'recommend' , 'related' , 'footer' , 'comment' , 'social' , 'submeta' ] ; export const AUTHOR_PATTERN_LIST = [ '责编[：|:| |丨|/]\\s*([\u4E00-\u9FA5a-zA-Z]{2,20})[^\u4E00-\u9FA5|:|：]' , '责任编辑[：|:| |丨|/]\\s*([\u4E00-\u9FA5a-zA-Z]{2,20})[^\u4E00-\u9FA5|:|：]' , '作者[：|:| |丨|/]\\s*([\u4E00-\u9FA5a-zA-Z]{2,20})[^\u4E00-\u9FA5|:|：]' , '编辑[：|:| |丨|/]\\s*([\u4E00-\u9FA5a-zA-Z]{2,20})[^\u4E00-\u9FA5|:|：]' , '原创[：|:| |丨|/]\\s*([\u4E00-\u9FA5a-zA-Z]{2,20})[^\u4E00-\u9FA5|:|：]' , '文[：|:| |丨|/]\\s*([\u4E00-\u9FA5a-zA-Z]{2,20})[^\u4E00-\u9FA5|:|：]' , '撰文[：|:| |丨|/]\\s*([\u4E00-\u9FA5a-zA-Z]{2,20})[^\u4E00-\u9FA5|:|：]' , '来源[：|:| |丨|/]\\s*([\u4E00-\u9FA5a-zA-Z]{2,20})[^\u4E00-\u9FA5|:|：|<]' ] ; export const DATETIME_PATTERN_LIST = [ '(\\d{4}[-|/|.]\\d{1,2}[-|/|.]\\d{1,2}\\s*?[0-1]?[0-9]:[0-5]?[0-9]:[0-5]?[0-9])' , '(\\d{4}[-|/|.]\\d{1,2}[-|/|.]\\d{1,2}\\s*?[2][0-3]:[0-5]?[0-9]:[0-5]?[0-9])' , '(\\d{4}[-|/|.]\\d{1,2}[-|/|.]\\d{1,2}\\s*?[0-1]?[0-9]:[0-5]?[0-9])' , '(\\d{4}[-|/|.]\\d{1,2}[-|/|.]\\d{1,2}\\s*?[2][0-3]:[0-5]?[0-9])' , '(\\d{4}[-|/|.]\\d{1,2}[-|/|.]\\d{1,2}\\s*?[1-24]\\d时[0-60]\\d分)([1-24]\\d时)' , '(\\d{2}[-|/|.]\\d{1,2}[-|/|.]\\d{1,2}\\s*?[0-1]?[0-9]:[0-5]?[0-9]:[0-5]?[0-9])' , '(\\d{2}[-|/|.]\\d{1,2}[-|/|.]\\d{1,2}\\s*?[2][0-3]:[0-5]?[0-9]:[0-5]?[0-9])' , '(\\d{2}[-|/|.]\\d{1,2}[-|/|.]\\d{1,2}\\s*?[0-1]?[0-9]:[0-5]?[0-9])' , '(\\d{2}[-|/|.]\\d{1,2}[-|/|.]\\d{1,2}\\s*?[2][0-3]:[0-5]?[0-9])' , '(\\d{2}[-|/|.]\\d{1,2}[-|/|.]\\d{1,2}\\s*?[1-24]\\d时[0-60]\\d分)([1-24]\\d时)' , '(\\d{4}年\\d{1,2}月\\d{1,2}日\\s*?[0-1]?[0-9]:[0-5]?[0-9]:[0-5]?[0-9])' , '(\\d{4}年\\d{1,2}月\\d{1,2}日\\s*?[2][0-3]:[0-5]?[0-9]:[0-5]?[0-9])' , '(\\d{4}年\\d{1,2}月\\d{1,2}日\\s*?[0-1]?[0-9]:[0-5]?[0-9])' , '(\\d{4}年\\d{1,2}月\\d{1,2}日\\s*?[2][0-3]:[0-5]?[0-9])' , '(\\d{4}年\\d{1,2}月\\d{1,2}日\\s*?[1-24]\\d时[0-60]\\d分)([1-24]\\d时)' , '(\\d{2}年\\d{1,2}月\\d{1,2}日\\s*?[0-1]?[0-9]:[0-5]?[0-9]:[0-5]?[0-9])' , '(\\d{2}年\\d{1,2}月\\d{1,2}日\\s*?[2][0-3]:[0-5]?[0-9]:[0-5]?[0-9])' , '(\\d{2}年\\d{1,2}月\\d{1,2}日\\s*?[0-1]?[0-9]:[0-5]?[0-9])' , '(\\d{2}年\\d{1,2}月\\d{1,2}日\\s*?[2][0-3]:[0-5]?[0-9])' , '(\\d{2}年\\d{1,2}月\\d{1,2}日\\s*?[1-24]\\d时[0-60]\\d分)([1-24]\\d时)' , '(\\d{1,2}月\\d{1,2}日\\s*?[0-1]?[0-9]:[0-5]?[0-9]:[0-5]?[0-9])' , '(\\d{1,2}月\\d{1,2}日\\s*?[2][0-3]:[0-5]?[0-9]:[0-5]?[0-9])' , '(\\d{1,2}月\\d{1,2}日\\s*?[0-1]?[0-9]:[0-5]?[0-9])' , '(\\d{1,2}月\\d{1,2}日\\s*?[2][0-3]:[0-5]?[0-9])' , '(\\d{1,2}月\\d{1,2}日\\s*?[1-24]\\d时[0-60]\\d分)([1-24]\\d时)' , '(\\d{4}[-|/|.]\\d{1,2}[-|/|.]\\d{1,2})' , '(\\d{2}[-|/|.]\\d{1,2}[-|/|.]\\d{1,2})' , '(\\d{4}年\\d{1,2}月\\d{1,2}日)' , '(\\d{2}年\\d{1,2}月\\d{1,2}日)' , '(\\d{1,2}月\\d{1,2}日)' ] ; export const TITLE_TAG_SELECTOR = 'h1,h2,h3,h4' ; export const TITLE_SPLIT_CHAR_PATTERN = '[-_|]' ;