xmp2assert 4 → 5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xmp2assert/version.rb +1 -1
- data/lib/xmp2assert/xmp2rexp.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ead66153d54037ddd64a7d9f6249abd0e35bfc38
|
4
|
+
data.tar.gz: f041305358aa731b972e1a730033b8bc3732fbcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06611e88009ad40fa0c8a08a71c3fd2f83e8f211881a14f4218ee44aa134e26a8f554e3f285e23f9038e931081a5fec7056ae67998fe4233eb7e478d2b3d2581
|
7
|
+
data.tar.gz: 1ab5fb590fc8e7bd845b26834f5c8c9838e19e0f9ce5a6dc4e192ae52b8c47eeb8ecb8e1a95b26575f6e3271395284bfb7532582618e7e23ba63dcf87f770dea
|
data/lib/xmp2assert/version.rb
CHANGED
data/lib/xmp2assert/xmp2rexp.rb
CHANGED
@@ -48,11 +48,11 @@ module XMP2Assert::XMP2Rexp
|
|
48
48
|
# :NOTE: we are editing regular expressions using regular expressions. In
|
49
49
|
# order to hack this method you must be a seasoned regular expression
|
50
50
|
# craftsperson who can count backslashes at ease.
|
51
|
-
src = Regexp.escape xmp
|
51
|
+
src = Regexp.escape xmp.chomp
|
52
52
|
src.gsub!(/([^\\])(\\n|\\ )+/, '\\1\s+')
|
53
53
|
src.gsub!(/(#<[\w:]+?:)0x[0-9a-f]+/, '\\10x[0-9a-f]+')
|
54
54
|
src.gsub!(/\\\.rb:\d+/, '\\.rb:\d+')
|
55
55
|
|
56
|
-
return Regexp.new "\\A#{src}\\z"
|
56
|
+
return Regexp.new "\\A#{src}\\n?\\z"
|
57
57
|
end
|
58
58
|
end
|