rubyn 0.1.2 → 0.1.3
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a406bccd1e8bba621fd7465b792b8630c2dd586118d9116e1ad178061fe39dd
|
|
4
|
+
data.tar.gz: a49480476f8293d38a2998a0df0f6b1144ccc477dec6982ac853038a93866d0a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a68aa5fac1c7c708e678976e89818bc0cc108ab1b4e902d6f32ec82d71872ddea82f060db656d9829fa095cba6655b9de3b24464ec8d151fcfbf4846fde8fe83
|
|
7
|
+
data.tar.gz: edb357abf5f2e8e0c106fe35a22866db7c4a70dda97d5edc9b90ff8c93077d99d1e148f780346b5ba90b7b88cdb9ba900ef8e610e0b62186dbdb4703258af8d6
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Rubyn
|
|
4
4
|
module Context
|
|
5
5
|
class ResponseParser
|
|
6
|
-
BOLD_HEADER = /\*\*(?:
|
|
6
|
+
BOLD_HEADER = /\*\*(?:New|Updated|Modified)\s*(?:file)?:\s*([a-zA-Z0-9_\/\.\-]+\.rb)\*\*/i
|
|
7
7
|
BACKTICK_PATH = /`([a-zA-Z0-9_\/\.\-]+\.rb)`\s*\z/
|
|
8
8
|
INLINE_COMMENT = /^#\s*([a-zA-Z0-9_\/\.\-]+\.rb)/
|
|
9
9
|
|
|
@@ -489,8 +489,9 @@
|
|
|
489
489
|
var preceding = i > 0 ? parts[i - 1] : "";
|
|
490
490
|
var path = null;
|
|
491
491
|
|
|
492
|
-
// Strategy 1: Bold header (**New file: path.rb**, **Updated file: path.rb
|
|
493
|
-
|
|
492
|
+
// Strategy 1: Bold header (**New file: path.rb**, **Updated file: path.rb**)
|
|
493
|
+
// Only match when preceded by New/Updated/Modified to avoid matching bold .rb references in prose
|
|
494
|
+
var boldMatch = preceding.match(/\*\*(?:New|Updated|Modified)\s*(?:file)?:\s*([a-zA-Z0-9_\/\.\-]+\.rb)\*\*/i);
|
|
494
495
|
if (boldMatch) path = boldMatch[1];
|
|
495
496
|
|
|
496
497
|
// Strategy 3: Backtick-wrapped path above code block
|
data/lib/rubyn/version.rb
CHANGED