Remove force lowercasing of commands.json
This commit is contained in:
1 parent
78e99d3e36
commit
b2e701d3fd
3 files changed
+3368
-3366
No files matched your search
@@ -293,7 +293,7 @@ style:
|
|||||||
[ -x client/proxmark3 ] && client/proxmark3 -m > doc/commands.md
|
[ -x client/proxmark3 ] && client/proxmark3 -m > doc/commands.md
|
||||||
# Make sure python3 is installed
|
# Make sure python3 is installed
|
||||||
@command -v python3 >/dev/null || ( echo "Please install 'python3' package first" ; exit 1 )
|
@command -v python3 >/dev/null || ( echo "Please install 'python3' package first" ; exit 1 )
|
||||||
# Update commands.json, patch port in cas it was run under Windows
|
# Update commands.json, patch port in case it was run under Windows
|
||||||
[ -x client/proxmark3 ] && client/proxmark3 --fulltext | sed 's#com[0-9]#/dev/ttyacm0#'|python3 client/pyscripts/pm3_help2json.py - doc/commands.json
|
[ -x client/proxmark3 ] && client/proxmark3 --fulltext | sed 's#com[0-9]#/dev/ttyacm0#'|python3 client/pyscripts/pm3_help2json.py - doc/commands.json
|
||||||
|
|
||||||
# Update the readline autocomplete autogenerated code
|
# Update the readline autocomplete autogenerated code
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ def get_version():
|
|||||||
def remove_ansi_escape_codes(text):
|
def remove_ansi_escape_codes(text):
|
||||||
"""Remove ANSI escape sequences that may be left in the text."""
|
"""Remove ANSI escape sequences that may be left in the text."""
|
||||||
re_ansi_escape = re.compile(r'(\x9B|\x1B\[)[0-?]*[ -/]*[@-~]')
|
re_ansi_escape = re.compile(r'(\x9B|\x1B\[)[0-?]*[ -/]*[@-~]')
|
||||||
return re_ansi_escape.sub('', str(text)).lower()
|
return re_ansi_escape.sub('', str(text))
|
||||||
|
|
||||||
|
|
||||||
def remove_extra_whitespace(text):
|
def remove_extra_whitespace(text):
|
||||||
|
|||||||
+3366
-3364
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user