Skip to content

Commit e6e5186

Browse files
authored
Merge pull request #39 from jpeltoniemi/update-polylang-regex
Change WPLF_Polylang regex to be less greedy.
2 parents dd75472 + 9806bea commit e6e5186

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

classes/class-wplf-polylang.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class WPLF_Polylang {
55
* CPT for the forms
66
*/
77
public static $instance;
8-
protected $regular_expression = "/{{\s*.+\s*}}/";
8+
protected $regular_expression = "/{{[^{}\n]+}}/";
99
protected $strings = array();
1010

1111
public static function init() {

0 commit comments

Comments
 (0)