Skip to content

Fix sms attachment file check - #179

Merged
ydkhatri merged 2 commits into
abrignoni:masterfrom
tobraha:chat-attachments
Jan 14, 2021
Merged

ydkhatri merged 2 commits into
abrignoni:masterfrom
tobraha:chat-attachments

Conversation

@tobraha

@tobraha tobraha commented Jan 14, 2021

Copy link
Copy Markdown
Contributor

Refer to #170 ; move the check for valid attachment file to include Windows.

@ydkhatri

Copy link
Copy Markdown
Contributor

Can you make another change along with this? Let's try to use some existing code functions like ilapfuncs.sanitize_file_name() on lines 71-72. It uses regex and is a much faster replace.
Just make the new commit, it should automatically get added to this pull.

- use ilapfunc.sanitize_file_name() for regex replacement instead of iterative
- minor formatting updates
@ydkhatri

Copy link
Copy Markdown
Contributor

Thanks.

@ydkhatri
ydkhatri merged commit 422590a into abrignoni:master Jan 14, 2021
@tobraha

tobraha commented Jan 14, 2021

Copy link
Copy Markdown
Contributor Author

Of course! It looks good to me, but I didn't get a chance to test this on Windows.

@tobraha
tobraha deleted the chat-attachments branch January 15, 2021 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants