endpoints.rs.dt remove broken unused header parsing code

This commit is contained in:
Mingwei Samuel 2020-06-25 23:07:21 -07:00 committed by GitHub
parent 15eee5883a
commit b3742ef919
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,11 +80,7 @@ impl<'a> {{= endpoint }}<'a> {
let rateLimitExcluded = get['x-app-rate-limit-excluded'] ? true : false;
/* Description processing. */
let desc = get.description;
let descArr = desc
.replace(/(#+)\s*([^\\]+)\\n(.*?)([\\n$])/g,
(m, g1, g2, g3, g4) => `<h${g1.length}>${g2}</h${g1.length}>\\n${g3}${g4}`)
.split('\n');
let descArr = get.description.split('\n');
/* Build argument comment & string. */
let argBuilder = [];