From b3742ef919638e84faa004b9e2c7fa0fc1e45cef Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Thu, 25 Jun 2020 23:07:21 -0700 Subject: [PATCH] endpoints.rs.dt remove broken unused header parsing code --- srcgen/endpoints.rs.dt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/srcgen/endpoints.rs.dt b/srcgen/endpoints.rs.dt index c3fe206..407f27a 100644 --- a/srcgen/endpoints.rs.dt +++ b/srcgen/endpoints.rs.dt @@ -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) => `${g2}\\n${g3}${g4}`) - .split('\n'); + let descArr = get.description.split('\n'); /* Build argument comment & string. */ let argBuilder = [];