diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2022-03-20 21:24:56 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-20 21:24:56 -0600 |
| commit | 0aad7459d1fe548219733b4a2b4f00fd3bf6f362 (patch) | |
| tree | 3e1d67c44b1701d97ffd9f7ba902267ee5267cc7 /lib | |
| parent | cabac9c30e660b77e8b87a98587a773defc314c8 (diff) | |
resolves #420 don't raise error if Asciidoctor::Extensions.unregister is called before groups are initialized (PR #4271)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor/extensions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor/extensions.rb b/lib/asciidoctor/extensions.rb index 194b3ea9..3ed02088 100644 --- a/lib/asciidoctor/extensions.rb +++ b/lib/asciidoctor/extensions.rb @@ -1531,7 +1531,7 @@ module Extensions # # Returns nothing def unregister *names - names.each {|group| @groups.delete group.to_sym } + names.each_with_object(groups) {|group, catalog| catalog.delete group.to_sym } nil end end |
