Skip to content

Commit 6098951

Browse files
committed
feat: more web formats supported
.htm dhtml .xhtml .shtm .shtml Log: as title
1 parent 2f87e5e commit 6098951

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
docparser (1.0.11) unstable; urgency=medium
2+
3+
* `htm` supported
4+
5+
-- Zhang Sheng <zhangsheng@uniontech.com> Tue, 21 May 2024 19:12:33 +0800
6+
17
docparser (1.0.10) unstable; urgency=medium
28

39
* update to 1.0.10

src/docparser.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ static bool isValidSuffix(const std::unordered_set<std::string> &supportedSuffix
3232
static bool isTextSuffix(const std::string &suffix)
3333
{
3434
static const std::unordered_set<std::string> validSuffixes = {
35-
"txt", "text", "md", "markdown", "sh", "html",
36-
"xml", "xhtml", "json", "css", "yaml", "ini",
37-
"bat", "js", "sql", "uof"
35+
"txt", "text", "md", "markdown", "sh", "html", "htm",
36+
"xml", "xhtml", "dhtml", "shtm", "shtml", "json",
37+
"css", "yaml", "ini", "bat", "js", "sql", "uof"
3838
};
3939
return isValidSuffix(validSuffixes, suffix);
4040
}

0 commit comments

Comments
 (0)