FEATURE: make hash detection super robust

FEATURE: make hash detection super robust

Give up on all special cases and simplify rules so we match much more aggressively.

Follows up on efcea148

diff --git a/lib/discourse_code_review/importer.rb b/lib/discourse_code_review/importer.rb
index 9ce10c0..85b30af 100644
--- a/lib/discourse_code_review/importer.rb
+++ b/lib/discourse_code_review/importer.rb
@@ -47,7 +47,7 @@ module DiscourseCodeReview
     end
 
     def detect_shas(text)
-      text.scan(/(?:\s|[\(\[\{"',;:.]|^)([a-f0-9]{8,})(?:\s|[\)\}\].,;:'"?!]|$)/).flatten
+      text.scan(/(?:[^a-zA-Z0-9]|^)([a-f0-9]{8,})(?:[^a-zA-Z0-9]|$)/).flatten
     end
 
     def find_linked_commits(text)
diff --git a/spec/discourse_code_review/lib/importer_spec.rb b/spec/discourse_code_review/lib/importer_spec.rb
index 10d08cf..eec13ec 100644
--- a/spec/discourse_code_review/lib/importer_spec.rb
+++ b/spec/discourse_code_review/lib/importer_spec.rb
@@ -6,7 +6,7 @@ module DiscourseCodeReview
     it "has robust sha detection" do
       text = (<<~STR).strip
         hello abcdf672, a723c123444!
-        (abc2345662) {abcd87234} [1209823bc]
+        (abc2345662) {abcd87234} [#1209823bc]
         ,7862abcdf abcdefg722
         abc7827421119a
       STR

GitHub
sha: 67eba4a1