mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
PadManager: anchor the addPad regex to the start of the string
This improves the performance a bit, and is more adherent to the logic of the application. --HG-- branch : padlist-use-set
This commit is contained in:
parent
8c4625ec50
commit
94ff21e25c
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ let padList = {
|
|||
this.initiated = true;
|
||||
|
||||
for (let val of dbData) {
|
||||
this.addPad(val.replace(/pad:/,""), false);
|
||||
this.addPad(val.replace(/^pad:/,""), false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue