tldr-pages / tldr-python-client

Python command-line client for tldr pages
https://pypi.org/project/tldr/
MIT License
596 stars 93 forks source link

Change non-word regex to be POSIX compliant #195

Closed stevejbrown closed 1 year ago

stevejbrown commented 2 years ago

Fixes #194

This makes the regex compatible with both BSD and GNU versions of sed.

stevejbrown commented 1 year ago

Thanks for the question @yutyo! I have not tested on Windows. I don't typically develop on it, but my understanding is that there are typically two ways to get sed on Windows:

  1. An installed linux distribution via Windows Subsystem for Linux
  2. As part of Cygwin

I think both of these options would use the GNU flavor of sed.