rashid2538 / php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML.
GNU General Public License v2.0
69 stars 48 forks source link

A bug in InsertTag function. #9

Closed huangshishu closed 10 years ago

huangshishu commented 10 years ago

In function InsertTag, here at line: if( preg_match( $words[ 0 ], $x ) ).

I think it should be preg_match( $words[ 0 ], $x ) => preg_match( $x, $words[ 0 ] ).

rashid2538 commented 10 years ago

@huangshishu I've fixed and updated the code, please check and gimme your feedback.

gondo commented 10 years ago

already fixed, close this issue pls