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

ukeeper / ukeeper-readability / 28681291847
78%
master: 78%

Build:
Build:
LAST BUILD BRANCH: fix/docker-gha-cache
DEFAULT BRANCH: master
Ran 03 Jul 2026 08:08PM 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

03 Jul 2026 08:07PM UTC coverage: 78.3% (+0.4%) from 77.947%
28681291847

Pull #84

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.
Pull Request #84: Trim and drop empty lines when saving multi-line rule fields

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 28681291847.1 03 Jul 2026 08:08PM UTC 9
78.3
GitHub Action Run
Source Files on build 28681291847
  • Tree
  • List 9
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #84
  • PR Base - master (#28463114096)
  • 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