[Git] Fix `deleted` and `inserted` regexp. See LeaVerou/prism#227.
diff --git a/components/prism-git.js b/components/prism-git.js
index 26538fc..8567a10 100644
--- a/components/prism-git.js
+++ b/components/prism-git.js
@@ -51,8 +51,8 @@ Prism.languages.git = {
/*
* Regexp to match the changed lines in a git diff output. Check the example above.
*/
- 'deleted': /^-[^-\n]+$/m,
- 'inserted': /^\+[^+\n]+$/m,
+ 'deleted': /^-[^-][^\n]+$/m,
+ 'inserted': /^\+[^+][^\n]+$/m,
/*
* Match a "commit [SHA1]" line in a git log output.
diff --git a/components/prism-git.min.js b/components/prism-git.min.js
index a25e344..bf88efb 100644
--- a/components/prism-git.min.js
+++ b/components/prism-git.min.js
@@ -1 +1 @@
-Prism.languages.git={comment:/^#.*$/m,string:/("|')(\\?.)*?\1/gm,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s(--|-)\w+/m}},coord:/^@@.*@@$/m,deleted:/^-[^-\n]+$/m,inserted:/^\+[^+\n]+$/m,commit_sha1:/^commit \w{40}$/m};
\ No newline at end of file
+Prism.languages.git={comment:/^#.*$/m,string:/("|')(\\?.)*?\1/gm,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s(--|-)\w+/m}},coord:/^@@.*@@$/m,deleted:/^-[^-][^\n]+$/m,inserted:/^\+[^+][^\n]+$/m,commit_sha1:/^commit \w{40}$/m}
\ No newline at end of file