Browse Source

clean code

Yuki Takei 8 years ago
parent
commit
f23420cbd8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resource/js/components/PageEditor/MarkdownTableUtil.js

+ 1 - 1
resource/js/components/PageEditor/MarkdownTableUtil.js

@@ -11,7 +11,7 @@ class MarkdownTableUtil {
     // https://regex101.com/r/7BN2fR/7
     this.tableAlignmentLineRE = /^[-:|][-:|\s]*$/;
     this.tableAlignmentLineNegRE = /^[^-:]*$/;  // it is need to check to ignore empty row which is matched above RE
-    this.linePartOfTableRE = /^\|[^\r\n]*|[^\r\n]*\|$|([^\|\r\n]+\|[^\|\r\n]*)+/; // own idea
+    this.linePartOfTableRE = /^\|[^\r\n]*|[^\r\n]*\|$|([^|\r\n]+\|[^|\r\n]*)+/; // own idea
 
     this.getBot = this.getBot.bind(this);
     this.getEot = this.getEot.bind(this);