Skip to content

Commit f964e3b

Browse files
author
feihaozi77
committed
modified BorderRadiusEditor to allow keeping all units(%,em,px)--#2
1 parent 63f7f4e commit f964e3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extensions/default/InlineBorderRadiusEditor/BorderRadiusEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ define(function(require, exports, module) {
2424
var flag = true;
2525
String.prototype.replaceAll = function(str1, str2, ignore)
2626
{
27-
return this.replace(new RegExp(str1.replace(/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g,"\\$&"),(ignore?"gi":"g")),(typeof(str2)=="string")?str2.replace(/\$/g,"$$$$"):str2);
27+
return this.replace(new RegExp(str1.replace(/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g,"\\$&"),(ignore?"gi":"g")),(typeof(str2)==="string")?str2.replace(/\$/g,"$$$$"):str2);
2828
} ;
2929
var temp = values.replaceAll("px","A").replaceAll("%","B").replaceAll("em","C");
3030
var finalValues = temp.replaceAll("A"," ").replaceAll("B"," ").replaceAll("C"," ").split(" ");

0 commit comments

Comments
 (0)