File tree Expand file tree Collapse file tree 2 files changed +18
-14
lines changed Expand file tree Collapse file tree 2 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -179,14 +179,16 @@ EasyCoder.domain.webson = EasyCoder_Webson;
179
179
throw Error ( `Mismatched braces in ${ input } ` ) ;
180
180
}
181
181
const substr = output . substring ( p + 1 , q ) ;
182
- let repl = `<${ substr } >` ;
183
- try {
184
- const v = eval ( substr ) ;
185
- output = output . replace ( repl , v ) ;
186
- } catch ( e ) {
187
- //output = output.replace(repl, substr);
182
+ if ( ! [ 'b' , '/b' , 'i' , '/i' ] . includes ( substr ) ) {
183
+ let repl = `<${ substr } >` ;
184
+ try {
185
+ const v = eval ( substr ) ;
186
+ output = output . replace ( repl , v ) ;
187
+ } catch ( e ) {
188
+ output = output . replace ( repl , substr ) ;
189
+ }
190
+ changed = true ;
188
191
}
189
- changed = true ;
190
192
}
191
193
}
192
194
catch ( e ) {
Original file line number Diff line number Diff line change @@ -179,14 +179,16 @@ EasyCoder.domain.webson = EasyCoder_Webson;
179
179
throw Error ( `Mismatched braces in ${ input } ` ) ;
180
180
}
181
181
const substr = output . substring ( p + 1 , q ) ;
182
- let repl = `<${ substr } >` ;
183
- try {
184
- const v = eval ( substr ) ;
185
- output = output . replace ( repl , v ) ;
186
- } catch ( e ) {
187
- //output = output.replace(repl, substr);
182
+ if ( ! [ 'b' , '/b' , 'i' , '/i' ] . includes ( substr ) ) {
183
+ let repl = `<${ substr } >` ;
184
+ try {
185
+ const v = eval ( substr ) ;
186
+ output = output . replace ( repl , v ) ;
187
+ } catch ( e ) {
188
+ output = output . replace ( repl , substr ) ;
189
+ }
190
+ changed = true ;
188
191
}
189
- changed = true ;
190
192
}
191
193
}
192
194
catch ( e ) {
You can’t perform that action at this time.
0 commit comments