branch: elpa/subed
commit 545f1701706df76ce408aa480b6eaaafe0a98afe
Author: Sacha Chua <sa...@sachachua.com>
Commit: Sacha Chua <sa...@sachachua.com>

    Show directories when doing subed-word-data-load-from-file
---
 subed/subed-word-data.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/subed/subed-word-data.el b/subed/subed-word-data.el
index 2bb7f958cc..1d8dc52952 100644
--- a/subed/subed-word-data.el
+++ b/subed/subed-word-data.el
@@ -128,10 +128,9 @@ For now, only SRV2 and JSON files are supported."
                                      nil
                                      nil
                                      (lambda (f)
-                                       (or (file-directory-p f)
-                                           (string-match
-                                            "\\.json\\'\\|\\.srv2\\'"
-                                            f))))))
+                                       (string-match
+                                        "\\.json\\'\\|\\.srv2\\'"
+                                        f)))))
   (subed-word-data--load
    (if (and (stringp file) (string-match "\\.json\\'" file))
        (subed-word-data--extract-words-from-whisperx-json file)

Reply via email to