From 23c5101227c84e99ef139b99d1c8f11b7e383b05 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 28 Jan 2016 14:44:54 -0800 Subject: [PATCH] Make doc postprocess fix for symbol identifers more generic. --- lib/doc/build.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/doc/build.js b/lib/doc/build.js index 333a64a42..e4057260e 100644 --- a/lib/doc/build.js +++ b/lib/doc/build.js @@ -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]'); } /*----------------------------------------------------------------------------*/