Skip to content

Commit

Permalink
Adjusted the regex for change in PR #521
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Jan 10, 2016
1 parent 5496f25 commit 48a0ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/tgmpa.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@
replacement = '';

reHookIns = /[\t]+\/\*(?:[^\*]+\*)+\/\s+add_action\( 'init', array\( \$this, 'load_textdomain' \)[^)]*\);\s+add_filter\( 'load_textdomain_mofile'[^\r\n]+/;
reLoadFunction = /[\t]+\/[\*]{2}(?:[^*]+\*)+\/\s+public function load_textdomain\(\) \{(?:[^\}]+\}){3}/;
reLoadFunction = /[\t]+\/[\*]{2}(?:[^*]+\*)+\/\s+public function load_textdomain\(\) \{(?:[^\}]+\}){4}/;
reOverloadFunctionA = /[\t]+\/[\*]{2}(?:[^*]+\*)+\/\s+public function correct_plugin_mofile\([^\)]*\) \{(?:[^\}]+\}){4}/;
reOverloadFunctionB = /[\t]+\/[\*]{2}(?:[^*]+\*)+\/\s+public function overload_textdomain_mofile\([^\)]*\) \{(?:[^\}]+\}){5}/;

Expand Down

0 comments on commit 48a0ae9

Please sign in to comment.