From 96e028600321ed1d30cc07f9c65d7639553b7d29 Mon Sep 17 00:00:00 2001 From: zortazert Date: Sat, 2 Apr 2022 19:41:46 -0500 Subject: [PATCH] Added more browsers and added support for open source with a slash in it. --- modules/render.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/render.py b/modules/render.py index 2ba8b64..9e92a41 100644 --- a/modules/render.py +++ b/modules/render.py @@ -24,9 +24,13 @@ def html(page, json): # Few words about it comment = json.get("comment","") - if "open source" in comment.lower(): + not_foss = ['open source', 'open-source'] + if "open source" or "open-source" in comment.lower(): # Well... Here is a thing. Free Software, not open source. where = comment.lower().find("open source") + # In case it has a slash in it. + if where == -1: + where = comment.lower().find("open-source") os = comment[where:where+11] comment = comment.replace(os, ""+os+"")