Fix README example to be valid JS

master
Sven Slootweg 5 years ago
parent df850fc856
commit fa3f544708

@ -13,7 +13,7 @@ let parsed = parseMXC.parse("mxc://pixie.town/qBpNzYpOknBxnSdcbFWrbqWT");
console.log(parsed); // { homeserver: 'pixie.town', id: 'qBpNzYpOknBxnSdcbFWrbqWT' }
let parsed = parseMXC("http://example.com/"); // throws a parseMXC.ParsingError
let invalid = parseMXC("http://example.com/"); // throws a parseMXC.ParsingError
```
## API

Loading…
Cancel
Save