• Resolved robanna

    (@robanna)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support jenneycs

    (@jenneycs)

    @robanna

    Thank you for reporting this and sharing the fix. We appreciate you raising it, and if everything checks out in testing, we will include it in the next release.

    Thread Starter robanna

    (@robanna)

    I noticed an attempt to fix my issue in the last update. Unfortunately, I’m still having an issue.

    I updated to the latest version and tried to save my regex and received an “internal error.”

    Find: (\d\d\d)\.(\d\d\d)\.(\d\d\d\d)

    Replace: <a href=’tel:$1-$2-$3′ aria-label=’$1-$2-$3′>$0</a>

    Changing line 60 to:

    $msg = self::insert_masking_rules( $find, $replace, $type, $replace_where, $id, $delay_time, $user_query ); //robanna

    fixed the error.

    We are using a multi-site set up, if that matters.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.