summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/smartmatch/engine/rjbs.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smartmatch/engine/rjbs.pm b/lib/smartmatch/engine/rjbs.pm
index cf5aa91..da40998 100644
--- a/lib/smartmatch/engine/rjbs.pm
+++ b/lib/smartmatch/engine/rjbs.pm
@@ -21,7 +21,7 @@ sub type {
if (overload::Method($thing, '~~')) {
return 'Overloaded';
}
- elsif (overload::Method($thing, '=~')) {
+ elsif (overload::Method($thing, 'qr')) {
return 'Regex';
}
else {