feat(ShadowCss): port implementation from webcomponent.js

This commit is contained in:
Victor Berchet
2015-02-18 10:06:31 +01:00
committed by Misko Hevery
parent 89b3995756
commit d67f0299cd
6 changed files with 715 additions and 1 deletions

View File

@ -59,6 +59,10 @@ class StringWrapper {
return s == s2;
}
static String replace(String s, Pattern from, String replace) {
return s.replaceFirst(from, replace);
}
static String replaceAll(String s, RegExp from, String replace) {
return s.replaceAll(from, replace);
}