jordandelozier / wysibb

WYSIWYG BBcode editor
http://www.wysibb.com
246 stars 86 forks source link

Fix for #184 #189

Open apotheosis91 opened 7 years ago

apotheosis91 commented 7 years ago

${ converts to ${ And the bug occurs when the special replacement pattern $& (that inserts the matched substring) is passed to the second argument of the replace method (which is inside while loop) on this line: bbdata = bbdata.replace(am[0],nhtml); But when specifying a function as second parameter in replace method, replacement patterns will not apply.

Benexx commented 6 years ago

Thanks for the fix, to bad the project isn;t supported anymore.