string_splitter 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/string_splitter.rb +2 -3
- data/lib/string_splitter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e73d7818b793f4c8dcbba35afb97045428085f17c07df328875383b2d162818
|
4
|
+
data.tar.gz: 6a15e18b265779aeaf5d8b18c5e13d70299ed7abbc52da815e2cee46419ce9a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dee0e70311f3718d0f7b68f77b56c657e137c8a658905ddc58f4fbef536b80071dced6a9836d0ad531b93e15c16c5f25ec42965f02a0a1e016de179b133bf746
|
7
|
+
data.tar.gz: 72a237dd80e3e06aad4a5bcc4545e6ea4d3d8167beb9afa6b502d964d510857947fe6071a88ded9f83df77a54da059c97abc1b3e70d8c14a03c8b77b0a01a675
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/lib/string_splitter.rb
CHANGED
@@ -21,7 +21,6 @@ class StringSplitter
|
|
21
21
|
index + 1
|
22
22
|
end
|
23
23
|
|
24
|
-
alias_method :offset, :index
|
25
24
|
alias_method :pos, :position
|
26
25
|
end
|
27
26
|
|
@@ -159,11 +158,11 @@ class StringSplitter
|
|
159
158
|
#
|
160
159
|
# before:
|
161
160
|
#
|
162
|
-
# %r| <(\w+-comment)> [^<]* </\1> |x
|
161
|
+
# %r| <(\w+-comment)> [^<]* </\1-comment> |x
|
163
162
|
#
|
164
163
|
# after:
|
165
164
|
#
|
166
|
-
# %r| ( <(\w+-comment)> [^<]* </\2> ) |x
|
165
|
+
# %r| ( <(\w+-comment)> [^<]* </\2-comment> ) |x
|
167
166
|
|
168
167
|
def increment_backrefs(delimiter, ncaptures)
|
169
168
|
if delimiter.is_a?(Regexp) && ncaptures > 0
|