mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 17:00:04 +02:00
better escaping
This commit is contained in:
parent
6e7e06277e
commit
09ca30b224
4 changed files with 59 additions and 12 deletions
|
@ -70,6 +70,7 @@ var CommandPromptView = Backbone.View.extend({
|
|||
_.each(value.split(';'), _.bind(function(command, index) {
|
||||
command = command.replace(/^(\s+)/, '');
|
||||
command = command.replace(/(\s+)$/, '');
|
||||
command = _.escape(command);
|
||||
|
||||
if (index > 0 && !command.length) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue