reywechat 1.0.60__py3-none-any.whl → 1.0.62__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
reywechat/rreceive.py CHANGED
@@ -809,22 +809,22 @@ class WeChatMessage(WeChatBase):
809
809
  throw(AssertionError, self._is_quote)
810
810
 
811
811
  # Extract.
812
- pattern = '<title>(.+?)</title>'
812
+ pattern = '<title>([^<>]+)</title>'
813
813
  text: str = search(pattern, self.data)
814
- pattern = r'<svrid>(\w+?)</svrid>'
814
+ pattern = r'<svrid>([^<>]+)</svrid>'
815
815
  quote_id = search(pattern, self.data)
816
816
  quote_id = int(quote_id)
817
- pattern = r'<createtime>(\d{10})</createtime>'
817
+ pattern = r'<createtime>([^<>]+)</createtime>'
818
818
  quote_time = search(pattern, self.data)
819
819
  quote_time = int(quote_time)
820
- pattern = r'<refermsg>\s*<type>(\d+?)</type>'
820
+ pattern = r'<refermsg>.*?<type>([^<>]+)</type>'
821
821
  quote_type = search(pattern, self.data)
822
822
  quote_type = int(quote_type)
823
- pattern = r'<chatusr>(\w+?)</chatusr>'
823
+ pattern = r'<chatusr>([^<>]+)</chatusr>'
824
824
  quote_user: str = search(pattern, self.data)
825
- pattern = '<displayname>(.+?)</displayname>'
825
+ pattern = '<displayname>([^<>]+)</displayname>'
826
826
  quote_user_name: str = search(pattern, self.data)
827
- pattern = '<content>(.+?)</content>'
827
+ pattern = '<content>([^<>]+)</content>'
828
828
  quote_data: str = search(pattern, self.data)
829
829
  self._quote_params: MessageQuoteParameter = {
830
830
  'text': text,
@@ -1051,7 +1051,7 @@ class WeChatMessage(WeChatBase):
1051
1051
  if result is not None:
1052
1052
  text = result
1053
1053
 
1054
- text = text.strip()
1054
+ self._call_text = text.strip()
1055
1055
 
1056
1056
  return self._call_text
1057
1057
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reywechat
3
- Version: 1.0.60
3
+ Version: 1.0.62
4
4
  Summary: WeChat method set.
5
5
  Project-URL: homepage, https://github.com/reyxbo/reywechat/
6
6
  Author-email: Rey <reyxbo@163.com>
@@ -5,12 +5,12 @@ reywechat/rcache.py,sha256=7UsHHfgFOgxuSqlTSAO6CprgUUOeBCXYus0kxmRBQxk,908
5
5
  reywechat/rclient.py,sha256=lc1CPle9h08mwP8NlJN0ybzcNJxtpV0ma6q6cz1RIxk,22518
6
6
  reywechat/rdb.py,sha256=PBEg_9Ig07vwqH3RNLaIWZZD7Joe6MQceiNB21hGAj0,48654
7
7
  reywechat/rlog.py,sha256=4EsTgrgC05JvWeKAucUaWGga638CRRJISJN6qncBCAw,5249
8
- reywechat/rreceive.py,sha256=OW27boLq8UL8ugSXlsu4DGvVLN701FL4QuVB5Lk90BU,51180
8
+ reywechat/rreceive.py,sha256=akRLA5j17ySLEUG5HnlYy4PSboQgHay9AcLapJrJM9k,51206
9
9
  reywechat/rsend.py,sha256=yrJf9GzWVCDptUHHazhWSVW0nm2LCIbb0sz2EII63bY,20049
10
10
  reywechat/rtrigger.py,sha256=WdOQwobPdGPyyE9J-qtQFPd60713T0aWqKk02PLdCRE,4966
11
11
  reywechat/rwechat.py,sha256=g0pbprMPv_qWb_lGFrPDAWsJO4vPSIgFLkw0Y28CZUo,4751
12
12
  reywechat/data/client_api.dll,sha256=H9uj-x9Ztg0jFZK0yY6NsnyH5_119dQRFfoVVMidxRs,592384
13
- reywechat-1.0.60.dist-info/METADATA,sha256=WDe_gDEIGMG7ljiwCP0mXwsQOKvkoUJJkSvcJl3JrBM,1551
14
- reywechat-1.0.60.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- reywechat-1.0.60.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
16
- reywechat-1.0.60.dist-info/RECORD,,
13
+ reywechat-1.0.62.dist-info/METADATA,sha256=7ln3X4XFfA0qjt-kuQzH2dev6D79Qls8BWilRvdTqoM,1551
14
+ reywechat-1.0.62.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ reywechat-1.0.62.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
16
+ reywechat-1.0.62.dist-info/RECORD,,