• Resolved aakins

    (@aakins)


    $datastructure = preg_replace("/{".$regExpPatt.":ifNotEmptyAddLeftRight:".$this->regExpPatternDetect."}/i", "", $datastructure);

    Should be:
    $datastructure = preg_replace("/{".$regExpPatt.":ifNotEmptyAddLeftRight:".$this->regExpPatternDetectWithBrackets."##".$this->regExpPatternDetect."##}/i", "", $datastructure);

    Also, I believe that the html, matches are missing from the clearUnusedArraryDatafields.

    The documentation shows that {street:ifNotEmptyAddLeftRight:extratextleft##extratextright} is the proper syntax, but is missing the last two pound signs before the ending bracket. ie. {street:ifNotEmptyAddLeftRight:extratextleft##extratextright##}

    https://ww.wp.xz.cn/plugins/json-content-importer/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author berkux

    (@berkux)

    Hi aakins,

    you checked the PRO-Version, as “ifNotEmptyAddLeftRight” is in PRO only. Here we talk about the free-version. Hence please mail me via http://json-content-importer.com/legal-contact/ and we can discuss in detail.

    But:
    1. The next version of the free version clearUnusedArrayDatafields will have a enhancement with the “html,” fields. So the PRO-Version.

    2.The Dokumenation is false. The “##}” at the end is required.

    3. The Codelines above: You’re right. Fix in next PRO-Version.

    Thanks a lot!
    Bernhard

    Plugin Author berkux

    (@berkux)

    PRO-verson 2.0.14 is out, does this help you?

    Thread Starter aakins

    (@aakins)

    Yes. Thanks Bernhard!

    Plugin Author berkux

    (@berkux)

    You’re welcome!

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

The topic ‘Incorrect Regex in clearUnusedArrayDatafields’ is closed to new replies.