1
0
Fork 0

Bug fix 3.5/fix arangosh documentation paste (#9743)

* fix pasting from the documentation

* CHANGELOG

* Update CHANGELOG
This commit is contained in:
Wilfried Goesgens 2019-08-19 14:39:15 +02:00 committed by KVS85
parent 5effbfd35a
commit 7fac859524
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,8 @@
v3.5.1 (XXXX-XX-XX)
-------------------
* Fixed cut'n'pasting code from the documentation into arangosh.
* Fixed issue #9652: fix ArangoSearch wrong name collision and raising
"Name collision detected" error during creation of a custom analyzer with
stopwords.

View File

@ -120,6 +120,9 @@ std::string ShellBase::prompt(std::string const& prompt,
if (StringUtils::isPrefix(line, plain)) {
pos = line.find('>');
// The documentation has this, so we ignore it:
} else if (StringUtils::isPrefix(line, "arangosh>")) {
pos = line.find('>');
} else if (StringUtils::isPrefix(line, "...")) {
pos = line.find('>');
}