branch: scratch/editorconfig-cc commit a18447efb547d0c9ba9780db28cfcb63431905a0 Author: 10sr <8.slas...@gmail.com> Commit: Stefan Monnier <monn...@iro.umontreal.ca>
Use whitespace class --- editorconfig-core-handle.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/editorconfig-core-handle.el b/editorconfig-core-handle.el index 72f0eacb8d..cb2cbb9b3f 100644 --- a/editorconfig-core-handle.el +++ b/editorconfig-core-handle.el @@ -124,10 +124,10 @@ This function is a fnmatch with a few modification for EditorConfig usage." pattern)))) (defsubst editorconfig-core-handle--string-trim (str) - "Remove leading and trailing whitespace from STR." - (replace-regexp-in-string "[ \t\n\r]+\\'" + "Remove leading and trailing whitespaces from STR." + (replace-regexp-in-string "[[:space:]]+\\'" "" - (replace-regexp-in-string "\\`[ \t\n\r]+" + (replace-regexp-in-string "\\`[[:space:]]+" "" str)))