branch: elpa/typescript-mode
commit 0d5c941c4c38b6f6ed1048a8dcfc5e1569e4b97b
Author: Zhu Zihao <[email protected]>
Commit: Zhu Zihao <[email protected]>

    * typescript-mode.el: Use EOS instead of EOL for auto mode regexp.
    
    This prevent matching filename like "xxxx.ts\nxxxx".
---
 typescript-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typescript-mode.el b/typescript-mode.el
index 7bad249e70..388f8a64e0 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -2978,7 +2978,7 @@ Key bindings:
      (folding-add-to-marks-list 'typescript-mode "// {{{" "// }}}" )))
 
 ;;;###autoload
-(add-to-list 'auto-mode-alist '("\\.ts$" . typescript-mode))
+(add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-mode))
 
 (provide 'typescript-mode)
 

Reply via email to