Fix non-global string replace for docs
String.prototype.replace is not a global replace when the first argument is a String, which caused escaping issues with docs generator, breaking formatting. This patch replaces the substring argument with an equivalent regex with the global flag.
Showing
with
3 additions
and
3 deletions
-
Please register or sign in to post a comment