Fix: escape special characters for wikipedia search, might improve #1500
This commit is contained in:
parent
ab1220cbc4
commit
ec94253d6c
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ export default class Wikidata {
|
|||
SERVICE wikibase:mwapi {
|
||||
bd:serviceParam wikibase:api "EntitySearch" .
|
||||
bd:serviceParam wikibase:endpoint "www.wikidata.org" .
|
||||
bd:serviceParam mwapi:search "${text}" .
|
||||
bd:serviceParam mwapi:search "${text.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}" .
|
||||
bd:serviceParam mwapi:language "${options.lang}" .
|
||||
?item wikibase:apiOutputItem mwapi:item .
|
||||
?num wikibase:apiOrdinal true .
|
||||
|
|
Loading…
Reference in a new issue