Commit a49295c0 authored by ergonlogic's avatar ergonlogic

Anchor regexes, cleanup docs.

parent 1d578561
......@@ -171,18 +171,11 @@ port=%s
if (is_null($regexes)) {
$regexes = array(
// remove DEFINER entries
// XXX: this should be anchored at ^
// original sed regex: /\\*!50013 DEFINER=.*/d
'#/\\*!50013 DEFINER=.*/#' => FALSE,
'#/^\\*!50013 DEFINER=.*/#' => FALSE,
// remove another kind of DEFINER line
// original sed regex: s|/\\*!50017 DEFINER=`[^`]*`@`[^`]*`\s*\\*/||g
// XXX: should also be anchored
// XXX: why the hell is there *another* DEFINER regex here?!
'#/\\*!50017 DEFINER=`[^`]*`@`[^`]*`\s*\\*/#' => '',
'#/^\\*!50017 DEFINER=`[^`]*`@`[^`]*`\s*\\*/#' => '',
// remove broken CREATE ALGORITHM entries
// original sed regex: s|/\\*!50001 CREATE ALGORITHM=UNDEFINED \\*/|/\\*!50001 CREATE \\*/|g
// XXX: should also be anchored
'#/\\*!50001 CREATE ALGORITHM=UNDEFINED \\*/#' => '/\\*!50001 CREATE \\*/',
'#/^\\*!50001 CREATE ALGORITHM=UNDEFINED \\*/#' => '/\\*!50001 CREATE \\*/',
);
// Allow regexes to be altered or appended to.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment