Repository: couchdb-fauxton Updated Branches: refs/heads/master 2e770d66b -> c6f36518f
Allow hyphen in key name when matching edit line Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/c6f36518 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/c6f36518 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/c6f36518 Branch: refs/heads/master Commit: c6f36518f74dbce83ea38b28a2a91f6dc30dbf95 Parents: 2e770d6 Author: Steven Spungin <[email protected]> Authored: Mon Jan 2 22:57:40 2017 -0500 Committer: Steven Spungin <[email protected]> Committed: Mon Jan 2 22:57:40 2017 -0500 ---------------------------------------------------------------------- app/addons/components/components/codeeditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/c6f36518/app/addons/components/components/codeeditor.js ---------------------------------------------------------------------- diff --git a/app/addons/components/components/codeeditor.js b/app/addons/components/components/codeeditor.js index f8201dc..9a89618 100644 --- a/app/addons/components/components/codeeditor.js +++ b/app/addons/components/components/codeeditor.js @@ -253,7 +253,7 @@ export const CodeEditor = React.createClass({ // one JS(ON) string can't span more than one line - we edit one string, so ensure we don't select several lines if (selStart >= 0 && selEnd >= 0 && selStart === selEnd && this.isRowExpanded(selStart)) { var editLine = this.getLine(selStart), - editMatch = editLine.match(/^([ \t]*)("[a-zA-Z0-9_]*["|']: )?(["|'].*",?[ \t]*)$/); + editMatch = editLine.match(/^([ \t]*)("[a-zA-Z0-9_\-]*["|']: )?(["|'].*",?[ \t]*)$/); if (editMatch) { return editMatch;
