It is possible for a user to enter any text. Todo add wow address regular expression check here.
It is possible for a user to enter any text. Todo add wow address regular expression check [here](https://git.wownero.com/wownero/YellWOWPages/src/commit/1765bcdd128b6885826e730f498fec64c2b7e0f5/yellow/routes.py#L39).
This will not protect you from text input by anyone, you need to check that it is a correct address: maybe a regular expression, for monero it's ^4[0-9AB][1-9A-HJ-NP-Za-km-z]{93}$, just need to make one for wownero.
> Added in [here](https://git.wownero.com/wownero/YellWOWPages/pulls/9)
This will not protect you from text input by anyone, you need to check that it is a correct address: maybe a regular expression, for monero it's `^4[0-9AB][1-9A-HJ-NP-Za-km-z]{93}$`, just need to make one for wownero.
The isalnum() method returns True if all the characters are alphanumeric, meaning alphabet letter (a-z) and numbers (0-9).
Ok but the code you suggested still allows someone to write: IHateW0wneroIHateW0wneroIHateW0wneroIHateW0wneroIHateW0wneroIHateW0wneroIHateW0wneroIHateW0wneroo.
> `The isalnum() method returns True if all the characters are alphanumeric, meaning alphabet letter (a-z) and numbers (0-9).`
Ok but the code you suggested still allows someone to write: IHateW0wneroIHateW0wneroIHateW0wneroIHateW0wneroIHateW0wneroIHateW0wneroIHateW0wneroIHateW0wneroo.
It is possible for a user to enter any text. Todo add wow address regular expression check here.
Added in here
This will not protect you from text input by anyone, you need to check that it is a correct address: maybe a regular expression, for monero it's
^4[0-9AB][1-9A-HJ-NP-Za-km-z]{93}$
, just need to make one for wownero.The isalnum() method returns True if all the characters are alphanumeric, meaning alphabet letter (a-z) and numbers (0-9).
Ok but the code you suggested still allows someone to write: IHateW0wneroIHateW0wneroIHateW0wneroIHateW0wneroIHateW0wneroIHateW0wneroIHateW0wneroIHateW0wneroo.
Of course, I will submit a better check
Done in this commit
Although you just mistyped "WW" --> "Wo" otherwise it looks perfect 👍
This way users can only input sub addresses that are better for their privacy
Oh ok no worries then :)