summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2015-01-19 00:28:32 +0000
committerJohn McLear <john@mclear.co.uk>2015-01-19 00:28:32 +0000
commit33c62329baa9a0fd41d2ba16158845bb892aafdc (patch)
tree4b70e90f5647fbd617f8652876c2693f155f4df9 /src
parent0bd7914c3b409408d9a2b0f4f3d6b9ff95df0758 (diff)
downloadetherpad-lite-33c62329baa9a0fd41d2ba16158845bb892aafdc.zip
better regexp for line items
Diffstat (limited to 'src')
-rw-r--r--src/static/js/ace2_inner.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js
index 811c9a1f..bd1f0053 100644
--- a/src/static/js/ace2_inner.js
+++ b/src/static/js/ace2_inner.js
@@ -5106,7 +5106,7 @@ function Ace2Inner(){
{
return null;
}
- type = /([a-z]+)[0-9+]/.exec(type);
+ type = /([a-z]+)[0-9]+/.exec(type);
if(type[1] == "indent")
{
return null;
@@ -5115,7 +5115,7 @@ function Ace2Inner(){
//2-find the first line of the list
while(lineNum-1 >= 0 && (type=getLineListType(lineNum-1)))
{
- type = /([a-z]+)[0-9+]/.exec(type);
+ type = /([a-z]+)[0-9]+/.exec(type);
if(type[1] == "indent")
break;
lineNum--;
@@ -5135,7 +5135,7 @@ function Ace2Inner(){
while(listType = getLineListType(line))
{
//apply new num
- listType = /([a-z]+)([0-9+])/.exec(listType);
+ listType = /([a-z]+)([0-9]+)/.exec(listType);
curLevel = Number(listType[2]);
if(isNaN(curLevel) || listType[0] == "indent")
{