Skip to content

Commit 9806bea

Browse files
author
Jani Peltoniemi
committed
Change WPLF_Polylang regex to be less greedy.
This allows double delimiters in case something else uses the {{varname}} syntax as discussed in #33
1 parent dd75472 commit 9806bea

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)