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+"")