Fix speaker note separator regex should only take effect on the line start

This commit is contained in:
Wu Cheng-Han 2017-06-05 01:20:21 +08:00
parent ca95901204
commit 48f8378335
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ import { md } from './extra'
} }
}(this, function () { }(this, function () {
var DEFAULT_SLIDE_SEPARATOR = '^\r?\n---\r?\n$' var DEFAULT_SLIDE_SEPARATOR = '^\r?\n---\r?\n$'
var DEFAULT_NOTES_SEPARATOR = 'note:' var DEFAULT_NOTES_SEPARATOR = '^note:'
var DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR = '\\.element\\s*?(.+?)$' var DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR = '\\.element\\s*?(.+?)$'
var DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR = '\\.slide:\\s*?(\\S.+?)$' var DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR = '\\.slide:\\s*?(\\S.+?)$'