mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
revert title replacement for the moment
This commit is contained in:
parent
d662bcd2fd
commit
17fac52aba
1 changed files with 3 additions and 6 deletions
|
@ -213,13 +213,10 @@ async function doImport(req, res, padId)
|
||||||
* title and comment it out independently on the classes that are set on it.
|
* title and comment it out independently on the classes that are set on it.
|
||||||
*
|
*
|
||||||
* @todo what happens if <title is used somewhere in the pad? need proper XML parser
|
* @todo what happens if <title is used somewhere in the pad? need proper XML parser
|
||||||
|
* @todo does not work all the time
|
||||||
*/
|
*/
|
||||||
if (text.match(/<\/title>/)){
|
text = text.replace("<title", "<!-- <title");
|
||||||
text = text.replace("<title", "<!-- <title");
|
text = text.replace("</title>","</title>-->");
|
||||||
text = text.replace("</title>","</title>-->");
|
|
||||||
} else {
|
|
||||||
text = text.replace(/<title[^>]*\/>/,'');
|
|
||||||
}
|
|
||||||
|
|
||||||
// node on windows has a delay on releasing of the file lock.
|
// node on windows has a delay on releasing of the file lock.
|
||||||
// We add a 100ms delay to work around this
|
// We add a 100ms delay to work around this
|
||||||
|
|
Loading…
Reference in a new issue