# GitHub onebox does not skip leading tabs

**URL:** <https://meta.discourse.org/t/github-onebox-does-not-skip-leading-tabs/42891>\
**Category:** Feature\
**Created:** [Avril 20, 2016, 4:16 UTC](https://meta.discourse.org/t/github-onebox-does-not-skip-leading-tabs/42891 "2016-04-20T16:16:39Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [Avril 20, 2016, 8:50 UTC](https://meta.discourse.org/t/github-onebox-does-not-skip-leading-tabs/42891/7 "2016-04-20T20:50:50Z")

</div>

Actually, I don’t think that is a concern, if Ruby’s regex uses PCRE, it only matches a subset of values unless it is specifically compiled in a way that can put a strain on performance using the PCRE\_UCP option.  
[http://www.pcre.org/pcre.txt](http://www.pcre.org/pcre.txt)

Plus that non-whitespace would have to be at the start of a line, which is unlikely too, granted, I guess someone could write a literal string across multiple lines.

Fairly certain `\s` is safe, but I also have nothing against specifying `\t`. Another approach would be to replace all instances of `\t` at the beginning of a line with 4 spaces and let the logic continue on its way since it already works with spaces.

So I’d say there is a very very small chance that `\s` would be problematic. Especially given that it would have to be a multi-line literal string. Otherwise, there would be zero chance of it the line starting with a unicode whitespace.

---

_[View the full topic](https://meta.discourse.org/t/github-onebox-does-not-skip-leading-tabs/42891)._
