Last active
September 16, 2024 18:37
-
-
Save artemsites/11d260ae1588f57c516ebcd06c1d57c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @version 16.09.2024 | |
* import { getClearPhone } from "/src/utils/regexp.js" | |
*/ | |
export function getClearPhone(str) { | |
return str.replace(/[^+0-9]/g, "") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment