diff options
author | Grant Gayed <grant_gayed@ca.ibm.com> | 2015-02-25 12:04:28 -0500 |
---|---|---|
committer | Grant Gayed <grant_gayed@ca.ibm.com> | 2015-02-25 12:04:28 -0500 |
commit | b31cb2b8a917394494993bfb35ab7aa8c36a6d4c (patch) | |
tree | ed953fb2925d1052a54280702454ae89009a35ff | |
parent | f715340407fc6c8d6025be79863aa89904556942 (diff) | |
download | org.eclipse.orion.client-origin/ggayed/yamlFrontMatter.zip org.eclipse.orion.client-origin/ggayed/yamlFrontMatter.tar.gz org.eclipse.orion.client-origin/ggayed/yamlFrontMatter.tar.bz2 |
fix markdown editor exception loggingorigin/ggayed/yamlFrontMatter
-rw-r--r-- | bundles/org.eclipse.orion.client.ui/web/orion/markdownEditor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/markdownEditor.js b/bundles/org.eclipse.orion.client.ui/web/orion/markdownEditor.js index 307359b..d0c62d2 100644 --- a/bundles/org.eclipse.orion.client.ui/web/orion/markdownEditor.js +++ b/bundles/org.eclipse.orion.client.ui/web/orion/markdownEditor.js @@ -691,7 +691,7 @@ define([ if (match) { index += match.index + match[0].length; } else { - mMetrics.logEvent("status", "error", "MD1 " + token.type + " index=" + index + ": " + text.substring(Math.max(0, index - 10), index + 40)); //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-0$ + mMetrics.logEvent("status", "error", "MD2 " + token.type + ": " + text.substring(0, 40)); //$NON-NLS-3$ //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-0$ } } return index; |