forked from Gitlink/forgeplus-react
分支-特殊字符
This commit is contained in:
parent
2f25643fcc
commit
b0088a24ae
|
@ -257,7 +257,7 @@ export function turnbar(str){
|
|||
let s = str;
|
||||
if(s && s.length>0){
|
||||
if(s.indexOf("%")>-1){
|
||||
s = s.replaceAll('%','55');
|
||||
s = s.replaceAll('%','_25');
|
||||
}
|
||||
if(s.indexOf("#")>-1){
|
||||
s = s.replaceAll('#','%23');
|
||||
|
@ -271,8 +271,8 @@ export function turnbar(str){
|
|||
export function returnbar(str){
|
||||
let s = str;
|
||||
if(s && s.length>0){
|
||||
if(str.indexOf("55")>-1){
|
||||
s = s.replaceAll('55','%');
|
||||
if(str.indexOf("_25")>-1){
|
||||
s = s.replaceAll('_25','%');
|
||||
}
|
||||
if(s.indexOf("%23")>-1){
|
||||
s = s.replaceAll('%23','#');
|
||||
|
|
Loading…
Reference in New Issue