org-ruby 0.10.0 → 0.10.1
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 +4 -4
- data/History.org +5 -0
- data/lib/org-ruby/headline.rb +1 -1
- data/lib/org-ruby/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: 44fcdd4424ed21e279e00aa90e6f5b12f9b328137e19421d15e08dfb1a8b4bba
|
|
4
|
+
data.tar.gz: 134e3c2d9785c25da86c1085987b9b54ec861e6e3f94db3d9e7232618f0c483f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53fdc3e9be14d71ad68b85ef4f81a58ec168b93dc71f924106ced76762a28c2f6f084f4e51ba51e09d84dbfd1632fd542dfeaadfa1ba178c3ce6ef727e646d6d
|
|
7
|
+
data.tar.gz: 1dfc76204e15dc8d02524c02fd24396f90c46e34a320d1fcff43e918d904008ef77044ad59ca7d8c2ddfcd5a3520412a57afa635d1988ffc78d72ceb08456026
|
data/History.org
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
#+title: Changelog
|
|
3
3
|
#+startup: showeverything
|
|
4
4
|
|
|
5
|
+
* 0.10.1 / 2026-10-09
|
|
6
|
+
|
|
7
|
+
- Escape custom TODO keywords containing regexp special characters
|
|
8
|
+
(by [[https://github.com/mockra][@mockra]])
|
|
9
|
+
|
|
5
10
|
* 0.10.0 / 2026-10-09
|
|
6
11
|
|
|
7
12
|
- Requires Ruby >= 3.1 (tested on Ruby 3.1 through 4.0)
|
data/lib/org-ruby/headline.rb
CHANGED
|
@@ -97,7 +97,7 @@ module Orgmode
|
|
|
97
97
|
words = @headline_text.split
|
|
98
98
|
if words.length > 0 && words[0] =~ re then
|
|
99
99
|
@keyword = words[0]
|
|
100
|
-
@headline_text.sub!(Regexp.new("^#{@keyword}\s*"), "")
|
|
100
|
+
@headline_text.sub!(Regexp.new("^#{Regexp.escape(@keyword)}\s*"), "")
|
|
101
101
|
end
|
|
102
102
|
end
|
|
103
103
|
end # class Headline
|
data/lib/org-ruby/version.rb
CHANGED