Skip to content

Commit

Permalink
Fix regular expression to avoid unexpected matching
Browse files Browse the repository at this point in the history
  • Loading branch information
sunasaji committed Dec 26, 2018
1 parent c94c748 commit 96a0967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vrc_world_user_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def main():
match=re.search('([0-9\.]+ [0-9:]+).+Joining or Creating Room: (.+)',line)
if match != None:
output_file.write(match.group(1) + " World: " + match.group(2) + "\n")
match=re.search('([0-9\.]+ [0-9:]+).+OnPlayerJoined (.+)',line)
match=re.search('([0-9\.]+ [0-9:]+).+\[NetworkManager\] OnPlayerJoined (.+)',line)
if match != None:
output_file.write(match.group(1) + " User: " + match.group(2) + "\n")

Expand Down

0 comments on commit 96a0967

Please sign in to comment.