instasent / sms-counter-php

SMS Counter and sanitize tools
MIT License
49 stars 28 forks source link

Normalize Newline Characters for SMS Count #25

Open ba5liel opened 8 months ago

ba5liel commented 8 months ago

Overview

This PR introduces a small but crucial change to the count function in the SMS counting logic. It normalizes newline characters across different operating systems by converting all \r\n (Carriage Return + Line Feed) to \n (Line Feed). This change ensures that the SMS character count is consistent and accurate regardless of the platform the text is coming from.

Changes Made

Impact

Tests and Safety