Skip to content

Commit

Permalink
doc: use better regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Young committed Aug 26, 2017
1 parent d01c036 commit 967cdba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/doc/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const typeParser = require('./type-parser.js');
module.exports = toHTML;

const STABILITY_TEXT_REG_EXP = /(.*:)\s*(\d)([\s\S]*)/;
const DOC_CREATED_REG_EXP = /<!--introduced_in( )?=( )?v([0-9]+)\.([0-9]+)\.([0-9]+)-->/;
const DOC_CREATED_REG_EXP = /<!--\s*introduced_in\s*=\s*v([0-9]+)\.([0-9]+)\.([0-9]+)\s*-->/;

// customized heading without id attribute
const renderer = new marked.Renderer();
Expand Down Expand Up @@ -219,7 +219,7 @@ function altDocs(filename) {
{ num: '5.x' },
{ num: '4.x', lts: true },
{ num: '0.12.x' },
{ num: '0.10.x' },
{ num: '0.10.x' }
];

const host = 'https://nodejs.org';
Expand Down

0 comments on commit 967cdba

Please sign in to comment.