mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Remove unnecessary doctrine fixes.
This commit is contained in:
@@ -33,13 +33,8 @@ var config = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function postprocess(string) {
|
function postprocess(string) {
|
||||||
// Fix docdown bugs.
|
// Wrap symbol property identifiers in brackets.
|
||||||
return string
|
return string.replace(/\.(Symbol\.(?:[a-z]+[A-Z]?)+)/g, '[$1]');
|
||||||
// Repair the default value of `chars`.
|
|
||||||
// See https://github.com/eslint/doctrine/issues/157 for more details.
|
|
||||||
.replace(/\bchars=''/g, "chars=' '")
|
|
||||||
// Wrap symbol property identifiers in brackets.
|
|
||||||
.replace(/\.(Symbol\.(?:[a-z]+[A-Z]?)+)/g, '[$1]');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
|
|||||||
Reference in New Issue
Block a user