mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-11-22 16:26:10 +08:00
v1.20.1
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
diff --git a/src/xml-parser/binary.js b/src/xml-parser/binary.js
|
||||
index e20cc96e8131078ea81afeb31af46142a52da58e..f0f788cc555046f0dab47f8854f26344e0d5d714 100644
|
||||
--- a/src/xml-parser/binary.js
|
||||
+++ b/src/xml-parser/binary.js
|
||||
@@ -547,8 +547,10 @@ var BinaryXmlParser = /*#__PURE__*/function () {
|
||||
attr.nodeName = attr.name = this.strings[nameRef];
|
||||
if (valueRef > 0) {
|
||||
// some apk have versionName with special characters
|
||||
- if (attr.name === 'versionName') {
|
||||
- this.strings[valueRef] = this.strings[valueRef].replace(/[^\d\w-.]/g, '');
|
||||
+ if (attr.name === 'versionName') {
|
||||
+ // only keep printable characters
|
||||
+ // https://www.ascii-code.com/characters/printable-characters
|
||||
+ this.strings[valueRef] = this.strings[valueRef].replace(/[^\x21-\x7E]/g, '')
|
||||
}
|
||||
attr.value = this.strings[valueRef];
|
||||
}
|
||||
Reference in New Issue
Block a user