feat(ShadowCss): port implementation from webcomponent.js
This commit is contained in:

committed by
Misko Hevery

parent
89b3995756
commit
d67f0299cd
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user