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

gernest / mention / 26
98%

Build:
DEFAULT BRANCH: master
Ran 04 Apr 2018 01:20PM UTC
Jobs 1
Files 1
Run time 0s
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

pending completion
26

Pull #14

travis-ci

web-flow
Always separate on spaces and unprintable characters

Some code is sending our backend mentions with a zero-width joiner for
whatever reason, for example:

    @example\u200d skldjg

The mention that would would get picked up is `@example\u200d`, instead
of the expected `@example`.

This patch always treats spaces and unprintable characters as
a terminator. I'm not sure if it ever makes sense to use a space inside
a mention?

Alternatively, I could add a callback function, or something?
Maintaining a list of all space/unprintable characters doesn't strike me
as a good idea, and the `unicode.Is*()` functions contain some
performance optimisations for the common (non-multibyte) use cases.

The downside is some performance loss:

master:

    BenchmarkGetTags-4       2000000               988 ns/op

this patch:

    BenchmarkGetTags-4       1000000              1259 ns/op
Pull Request #14: Always separate on spaces and unprintable characters

1 of 1 new or added line in 1 file covered. (100.0%)

42 of 45 relevant lines covered (93.33%)

155.22 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26.1 04 Apr 2018 01:20PM UTC 0
93.33
Travis Job 26.1
Source Files on build 26
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #26
  • Pull Request #14
  • PR Base - master (#24)
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