diff --git a/README.md b/README.md index 9defc22..252c891 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # unclosedTagFinder [![GitHub license](https://img.shields.io/badge/license-GPLv2-blue.svg)](https://raw.githubusercontent.com/ryanpcmcquen/unclosedTagFinder/master/LICENSE) -[![GitHub version](https://img.shields.io/badge/version-0.2.1-orange.svg)](https://github.com/ryanpcmcquen/unclosedTagFinder/releases) +[![GitHub version](https://img.shields.io/badge/version-0.3.0-orange.svg)](https://github.com/ryanpcmcquen/unclosedTagFinder/releases) [![GitHub issues](https://img.shields.io/github/issues/ryanpcmcquen/unclosedTagFinder.svg)](https://github.com/ryanpcmcquen/unclosedTagFinder/issues) [![Twitter](https://img.shields.io/twitter/url/https/github.com/ryanpcmcquen/unclosedTagFinder.svg?style=social)](https://twitter.com/intent/tweet?text=Hey%2C%20check%20this%20out%3A%20https%3A%2F%2Fgithub.com%2Fryanpcmcquen%2FunclosedTagFinder&url=%5Bobject%20Object%5D) @@ -25,7 +25,7 @@ TODO: - [x] Read file input. - [x] Accomodate tag names with attributes. -- [ ] Ignore self closing tags. +- [x] Ignore self closing tags. - [ ] Read remote files. - [ ] Accomodate multiple files. - [x] Accomodate user input. diff --git a/foo.html b/foo.html index c92ee75..177af1b 100644 --- a/foo.html +++ b/foo.html @@ -1,6 +1,7 @@
+
Foo
diff --git a/unclosedTagFinder.py b/unclosedTagFinder.py index ba3d9e1..52ce649 100755 --- a/unclosedTagFinder.py +++ b/unclosedTagFinder.py @@ -29,19 +29,28 @@ ''' Filter out void elements: https://www.w3.org/TR/html/syntax.html#void-elements -area, base, br, col, embed, hr, img, input, keygen, link, menuitem, meta, param, source, track, wbr ''' +voidElementsRegex = '