Skip to content

Commit

Permalink
Fixed usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
Pchelolo committed Apr 22, 2016
1 parent 8cf6cdc commit 312d45f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ Wiki-specific rules are fetched from the [api](https://en.wikipedia.org/w/api.ph
cached within the `Normalizer` instance, so reusing the instance is highly recommended.

```javascript
var result = Title.fromPrefixedText('some_title', {
general: {
lang: 'en',
legaltitlechars: " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+",
case: 'first-letter'
},
var result = Title.newFromText('some_title', {
general: {
lang: 'en',
legaltitlechars: " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+",
case: 'first-letter'
},
namespaces: {
"0": {
id: 0,
Expand Down

0 comments on commit 312d45f

Please sign in to comment.