shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
isUrlCompliant
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.string
This function check if the passed string is url compliant. This mean that it has no spaces, and no special characters
Params
- string*-String
The string to process
Return
- -Boolean
true if compliant, false if not
Example
import { isUrlCompliant } from '@blackbyte/sugar/string';
isUrlCompliant('Hello world'); // false
isUrlCompliant('/something/cool'); // trueTodo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space