aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
authorIgor Minar2012-03-09 14:49:40 -0800
committerIgor Minar2012-03-09 16:27:12 -0800
commit4a94bb9b345946a9efd51adaeedc0f907af4df49 (patch)
treedc6e46df05005bf5cb6b3470d819c6b8b2c4584e /src/Angular.js
parent53aacb35fa469496c88a04a70ffab875e8b35d86 (diff)
downloadangular.js-4a94bb9b345946a9efd51adaeedc0f907af4df49.tar.bz2
fix(startTag): fix tagname extraction
the original code magically worked for ng:foo but for nothing else
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 3f9938f1..7ab0e7f6 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -742,7 +742,7 @@ function startingTag(element) {
// are not allowed to have children. So we just ignore it.
element.html('');
} catch(e) {};
- return jqLite('<div>').append(element).html().replace(/\<\/[\w\:\-]+\>$/, '');
+ return jqLite('<div>').append(element).html().match(/^(<[^>]+>)/)[1];
}