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

ukeeper / ukeeper-readability / 28722516503
78%

Build:
DEFAULT BRANCH: master
Ran 04 Jul 2026 11:04PM UTC
Jobs 1
Files 9
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Jul 2026 11:04PM UTC coverage: 78.3% (+0.4%) from 77.947%
28722516503

push

github

paskal
Trim and drop empty lines when saving multi-line rule fields

saveRule split match_url, excludes and test_urls on "\n" only, so
browser-submitted \r\n left a trailing \r on every entry and blank lines
became empty-string entries, and this junk accumulated on every round-trip
through the edit form. New splitTrimLines trims each line and drops empties;
handlePreview reuses it in place of its ad-hoc split-and-trim loop.

Because splitTrimLines yields an empty slice for a blank textarea, the bson
"omitempty" on match_urls/excludes would have dropped the field from the
$set on update, silently keeping stale values. Drop the omitempty tags on
the form-editable fields (match_urls, excludes, use_cloudflare; test_urls
already lacked one) so clearing a field or unchecking the Cloudflare box
actually clears it, and normalise nil slices to []string{} in Save so
cleared arrays are stored as BSON arrays rather than null.

23 of 23 new or added lines in 2 files covered. (100.0%)

783 of 1000 relevant lines covered (78.3%)

9.77 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28722516503.1 04 Jul 2026 11:04PM UTC 9
78.3
GitHub Action Run
Source Files on build 28722516503
  • Tree
  • List 9
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 76ec2252 on github
  • Prev Build on master (#28722490970)
  • Next Build on master (#28722551124)
  • Delete
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

© 2026 Coveralls, Inc