-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
2 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,96 +52,8 @@ class Fixture { | |
/* Additional check for naked \r characters created by jsdoc */ | ||
/* See: https://github.com/jsdoc2md/dmd/issues/102 */ | ||
result = result.replace(/\\r(?!\\n)/g, '\\n') | ||
console.log(result) | ||
return JSON.parse(result) | ||
} | ||
} | ||
|
||
export default Fixture | ||
|
||
// const a = [ | ||
// { | ||
// comment: '/**\r\n' + | ||
// 'the constructor description\r\n' + | ||
// '@class\r\n' + | ||
// '@classdesc a class with all of the things\r\n' + | ||
// '@param {object} - an input\r\n' + | ||
// '@param [options] {object} - optional shit\r\n' + | ||
// '@author 75lb <[email protected]>\r\n' + | ||
// '@deprecated\r\n' + | ||
// '@since v0.10.28\r\n' + | ||
// '@extends {Number}\r\n' + | ||
// '@example\r\n' + | ||
// '```js\r\n' + | ||
// 'var yeah = new Everything(true)\r\n' + | ||
// '```\r\n' + | ||
// '*/', | ||
// meta: { | ||
// filename: '0-src.js', | ||
// lineno: 16, | ||
// columnno: 0, | ||
// path: 'D:\\a\\jsdoc-api\\jsdoc-api\\test\\fixture\\class-all', | ||
// }, | ||
// description: 'the constructor description', | ||
// kind: 'class', | ||
// classdesc: 'a class with all of the things', | ||
// author: [ '75lb <[email protected]>' ], | ||
// deprecated: true, | ||
// since: 'v0.10.28', | ||
// augments: [ 'Number' ], | ||
// examples: [ '```js\r\nvar yeah = new Everything(true)\r\n```' ], | ||
// name: 'All', | ||
// longname: 'All', | ||
// scope: 'global' | ||
// }, | ||
// { | ||
// comment: '/**\r\n' + | ||
// ' the ingredients on top\r\n' + | ||
// ' @default\r\n' + | ||
// ' @type {string}\r\n' + | ||
// ' @since v1.0.0\r\n' + | ||
// ' */', | ||
// meta: { | ||
// filename: '0-src.js', | ||
// lineno: 44, | ||
// columnno: 0, | ||
// path: 'D:\\a\\jsdoc-api\\jsdoc-api\\test\\fixture\\class-all', | ||
// }, | ||
// description: 'This function has all tags set', | ||
// deprecated: true, | ||
// author: [ 'Lloyd <[email protected]>' ], | ||
// since: 'v0.10.28', | ||
// examples: [ '```js\r\nall.allTogether(true)\r\n```' ], | ||
// name: 'allThings', | ||
// longname: 'All#allThings', | ||
// kind: 'function', | ||
// memberof: 'All', | ||
// scope: 'instance' | ||
// }, | ||
// { | ||
// comment: '/**\r\n a rarseclart inner\r\n */', | ||
// meta: { | ||
// filename: '0-src.js', | ||
// lineno: 48, | ||
// columnno: 6, | ||
// path: 'D:\\a\\jsdoc-api\\jsdoc-api\\test\\fixture\\class-all', | ||
// }, | ||
// description: 'a rarseclart inner', | ||
// name: 'some', | ||
// longname: 'All#allThings~some', | ||
// kind: 'member', | ||
// memberof: 'All#allThings', | ||
// scope: 'inner', | ||
// params: [] | ||
// }, | ||
// { | ||
// kind: 'package', | ||
// longname: 'package:undefined', | ||
// files: [ | ||
// 'D:\\a\\jsdoc-api\\jsdoc-api\\test\\fixture\\class-all\\0-src.js' | ||
// ] | ||
// } | ||
// ] | ||
|
||
// const result = Fixture.normaliseNewLines(a) | ||
// // console.log(result) |