Regex issue
-
I was having trouble with a regex replacement rule. I was trying to add a WCAG complinat link to every phone number like this:
Find: (\d\d\d)\.(\d\d\d)\.(\d\d\d\d)
Replace with: <a href=”tel:$1-$2-$3″ aria-label=”$1-$2-$3″>$0</a>
The quote marks kept getting removed. I made one small change to /real-time-auto-find-and-replace/core/admin/functions/Masking.php
Line 49 from: $msg = $this->insert_masking_rules( $find, $replace, $type, $replace_where, $id, $delay_time, $user_query );
to: $msg = self::insert_masking_rules( $find, $replace, $type, $replace_where, $id, $delay_time, $user_query );
That resolved the issue. I was hoping you’d make this change in the next release if it all checks out?
Thank you,
Robanna
You must be logged in to reply to this topic.