diff --git a/connpy/_version.py b/connpy/_version.py index f695191..2eced4a 100644 --- a/connpy/_version.py +++ b/connpy/_version.py @@ -1,2 +1,2 @@ -__version__ = "2.1.4" +__version__ = "2.1.5" diff --git a/connpy/core.py b/connpy/core.py index d3713dd..23366fc 100755 --- a/connpy/core.py +++ b/connpy/core.py @@ -139,11 +139,8 @@ class node: t = t.replace("\a","") t = t.replace('\n\n', '\n') t = re.sub(r'.\[K', '', t) - while True: - tb = re.sub('.\b', '', t, count=1) - if len(t) == len(tb): - break - t = tb + while t.find("\b") != -1: + t = re.sub('[^\b]\b', '', t) ansi_escape = re.compile(r'\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/ ]*[@-~])') t = ansi_escape.sub('', t) t = t.lstrip(" \n\r") diff --git a/docs/connpy/index.html b/docs/connpy/index.html index c00e6f5..d3afaf4 100644 --- a/docs/connpy/index.html +++ b/docs/connpy/index.html @@ -2005,11 +2005,8 @@ tasks: t = t.replace("\a","") t = t.replace('\n\n', '\n') t = re.sub(r'.\[K', '', t) - while True: - tb = re.sub('.\b', '', t, count=1) - if len(t) == len(tb): - break - t = tb + while t.find("\b") != -1: + t = re.sub('[^\b]\b', '', t) ansi_escape = re.compile(r'\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/ ]*[@-~])') t = ansi_escape.sub('', t) t = t.lstrip(" \n\r") diff --git a/requirements.txt b/requirements.txt index d75146d..87c12c9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ inquirer~=2.9.2 pexpect~=4.8.0 -pycryptodome~=3.14.1 +pycryptodome~=3.15.0 pyfzf~=0.3.1 -setuptools~=59.5.0 +PyYAML~=6.0 +setuptools~=61.3.1