mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 19:37:49 +00:00
Make doc postprocess fix for symbol identifers more generic.
This commit is contained in:
@@ -33,7 +33,8 @@ var config = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function postprocess(string) {
|
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]');
|
||||||
}
|
}
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
|
|||||||
Reference in New Issue
Block a user