summaryrefslogtreecommitdiff
path: root/lexsurf.go
diff options
context:
space:
mode:
Diffstat (limited to 'lexsurf.go')
-rw-r--r--lexsurf.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/lexsurf.go b/lexsurf.go
index 9c88052..6fa4394 100644
--- a/lexsurf.go
+++ b/lexsurf.go
@@ -26,6 +26,11 @@ func (c country) HasPlaceholder() bool {
return strings.Contains(c.SearchURL, "%s")
}
+func (c SearchContext) HasJSONLaws() bool {
+ _, ok := lawsByCC[c.TLD]
+ return ok
+}
+
var countries = map[string]country{}
var lawsByCC = map[string]map[string]law{}