github-markdown 0.5.4 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a03de5bb440c8070c42e296151a4cb329a3cb05d
4
- data.tar.gz: 7ce0d53435eb13f7a5d25d4af3bf55a853988583
3
+ metadata.gz: 6433aeeb45a4d139e4245c135b7b43065095c37b
4
+ data.tar.gz: 62050a7a94c8dd6e6e0516bb3bd61ab31c272f49
5
5
  SHA512:
6
- metadata.gz: 63efa0699c41e6073bbc2adcc6f6f10aa3fd39e021eb15f89e6c30599faa0218fea80fd62f6771eded755b10632029ec79edca4082b2bcb7eb7275f1230aa62c
7
- data.tar.gz: faf466f9e7533a7baf1f3d681bf42d3e2fae84da67187777ab5d39732d9a42605a35a30f30b9e47c73d2252963eb1dd07ffc9ee64f4cd7413eebdaef966f7f29
6
+ metadata.gz: 2894fe2ff8e055f248a2c16bbacbc54e73d1c0db547176631c81d284713f23d40fb16c406a1b5bf3a7352624e1304ce06a4c00bf31d2e665b7fe6e2a4b820078
7
+ data.tar.gz: 4f01241c3918cc5d68c091ef5c52bc7da93f306677e7ff4b00c5db1d295d6a70bb7e82f1d1dd1db9a815fb42f8b7719a04d12cf0a5edd65af96a92a17b4f0965
@@ -204,7 +204,7 @@ sd_autolink__email(
204
204
  unsigned int flags)
205
205
  {
206
206
  size_t link_end, rewind;
207
- int nb = 0, np = 0;
207
+ int nb = 0, np = 0, ns = 0;
208
208
 
209
209
  for (rewind = 0; rewind < max_rewind; ++rewind) {
210
210
  uint8_t c = data[-rewind - 1];
@@ -215,10 +215,13 @@ sd_autolink__email(
215
215
  if (strchr(".+-_", c) != NULL)
216
216
  continue;
217
217
 
218
+ if (c == '/')
219
+ ns++;
220
+
218
221
  break;
219
222
  }
220
223
 
221
- if (rewind == 0)
224
+ if (rewind == 0 || ns > 0)
222
225
  return 0;
223
226
 
224
227
  for (link_end = 0; link_end < size; ++link_end) {
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'github-markdown'
4
- s.version = '0.5.4'
4
+ s.version = '0.5.5'
5
5
  s.summary = 'The Markdown parser for GitHub.com'
6
6
  s.description = 'Self-contained Markdown parser for GitHub, with all our custom extensions'
7
7
  s.date = '2013-10-01'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub, Inc