Merge remote-tracking branch 'alexis/sort_downloads'
[nit.git] / lib / standard / string_search.nit
index 6f59bac..6aff1cd 100644 (file)
@@ -197,6 +197,9 @@ class BM_Pattern
                        i += 1
                end
        end
+
+       redef fun hash do return _motif.hash
+       redef fun ==(o) do return o isa BM_Pattern and o._motif == _motif
 end
 
 # Matches are a part of a string.