# GitHub onebox does not skip leading tabs

**URL:** <https://meta.discourse.org/t/github-onebox-does-not-skip-leading-tabs/42891>\
**Category:** Feature\
**Created:** [4월 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:** 6

<div class="post-metadata">

**Author:** ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)\
**Post date:** [4월 20, 2016, 6:15오후 UTC](https://meta.discourse.org/t/github-onebox-does-not-skip-leading-tabs/42891/6 "2016-04-20T18:15:58Z")

</div>

> <https://github.com/discourse/onebox/blob/main/lib/onebox/engine/github_blob_onebox.rb#L112-L127>

There are two lines these change would need to be made on:

```ruby
  m = l.match /^[]*/ # find leading spaces 0 or more

```

and

```ruby
  re = Regexp.new "^[]{#{min_space}}" #match the minimum spaces of the line

```

Please be specific about white spacing (i.e. use `[\t]`), using `\s` may cause unicode white-space ghosts past, present and future to come back and kick your ass.

---

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