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

gernest / mention / 28
98%

Build:
DEFAULT BRANCH: master
Ran 04 Apr 2018 01:29PM 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
28

push

travis-ci

gernest
Always separate on spaces and unprintable characters (#14)

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

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 28.1 04 Apr 2018 01:29PM UTC 0
93.33
Travis Job 28.1
Source Files on build 28
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #28
  • 38b9cc49 on github
  • Prev Build on master (#27)
  • Next Build on master (#31)
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