diff --git a/es6/filters.js b/es6/filters.js index a331967..dca36a8 100644 --- a/es6/filters.js +++ b/es6/filters.js @@ -3,7 +3,7 @@ function filterFactory(regexp) { errors.filter((e) => !e.word.match(regexp)); } -const numbers = filterFactory(/^[0-9,\.\-#]+(th|st|nd|rd)?$/); +const numbers = filterFactory(/^[\w\W]*[0-9,\.\-#]+[\w\W]*$/); const acronyms = filterFactory(/^[A-Z0-9]{2,}(['\u2018-\u2019]s)?$/); export default { @@ -21,4 +21,4 @@ export default { } return words; } -}; \ No newline at end of file +};