diff --git a/conf/static_processing.conf b/conf/static_processing.conf index cac811c..e32b9b3 100644 --- a/conf/static_processing.conf +++ b/conf/static_processing.conf @@ -240,13 +240,13 @@ basic_regex_metrics: module = "posix_regex_search"; metrics: { - unterminated_sentence_count: ( { flags = "E"; regex = "\\n[^#:\\*][^\\n]+[A-Za-z]\n\n"; } ); + unterminated_sentence_count: ( { flags = "E"; regex = "\\n[^#:*][^\\n]+[A-Za-z]\n\n"; } ); uncapitalized_sentence_count: ( { flags = "E"; regex = "\\. {1,4}[a-z]"; }, { flags = "E"; regex = "\\n\\n[a-z]"; } ); - punctuation_series_count: ( { flags = "E"; regex = "[!\\?]{3,}"; } ); - alpha_surrounded_punctuation_count: ( { flags = "E"; regex = "[a-zA-Z][\\.!\\?][a-zA-Z]"; } ); + punctuation_series_count: ( { flags = "E"; regex = "[!?]{3,}"; } ); + alpha_surrounded_punctuation_count: ( { flags = "E"; regex = "[a-zA-Z][.!?][a-zA-Z]"; } ); alpha_surrounded_digit_count: ( { flags = "E"; regex = "[a-zA-Z][0-9][a-zA-Z]"; } ); proper_pluralities: ( { flags = "E"; regex = "'s "; } ); }; @@ -272,8 +272,8 @@ remove_markup: { flags = "E"; regex = "^\\*"; replace=""; }, { flags = "E"; regex = "^#"; replace=""; }, { flags = "E"; regex = "<.{1,100}>"; replace=""; }, - { flags = "EI"; regex = "https?://[^ |\\]]{1,300}"; replace=" "; }, - { flags = "EI"; regex = "File:[^ |\\]]{1,300}"; replace=" "; }, + { flags = "EI"; regex = "https?://[^] |\\]{1,300}"; replace=" "; }, + { flags = "EI"; regex = "File:[^] |\\]{1,300}"; replace=" "; }, { flags = "E"; regex = "\\| *\n? *[a-zA-Z0-9]{1,25} *="; replace=" "; }, { flags = "EI"; regex = "^# ?redirect"; replace=""; }, { flags = "E"; regex = "\\{\\{[a-zA-Z#_-]+"; replace = " "; },