Make doc postprocess fix for symbol identifers more generic.

This commit is contained in:
John-David Dalton
2016-01-28 14:44:54 -08:00
parent de3eeb2d47
commit 23c5101227

View File

@@ -33,7 +33,8 @@ var config = {
};
function postprocess(string) {
return string.replace(/\.(Symbol\.iterator)\b/g, '[$1]');
// Fix docdown bug by wrapping symbol property identifiers in brackets.
return string.replace(/\.(Symbol\.(?:[a-z]+[A-Z]?)+)/g, '[$1]');
}
/*----------------------------------------------------------------------------*/