• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

keenwon / eazydict-bing / #263

08 Dec 2017 08:13AM UTC coverage: 86.709% (-3.2%) from 89.873%
#263

push

travis-ci

web-flow
Update .travis.yml

19 of 28 branches covered (67.86%)

Branch coverage included in aggregate %.

118 of 130 relevant lines covered (90.77%)

13.42 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/lib/utils.js
1
'use strict';
2

3
/**
4
 * 移除 HTML 文本中的标签,合并多个空白为单个
5
 */
6
function removeTagsAndSpaces(html) {
7
  if (!html || typeof html !== 'string') {
181!
8
    return html;
×
9
  }
10

11
  return html
181✔
12
    .replace(/<[^>]+?>/gm, '')
13
    .replace(/\s+/gm, ' ')
14
    .trim();
15
}
16

17
module.exports = {
1✔
18
  removeTagsAndSpaces
19
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc