Skip to content

Commit cfbf88a

Browse files
author
patched.codes[bot]
committed
Patched /tmp/tmpwfgq3ukq/WebContent/swagger/lib/marked.js
1 parent 23d17e9 commit cfbf88a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WebContent/swagger/lib/marked.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ Lexer.prototype.token = function(src, top, bq) {
308308
if (~item.indexOf('\n ')) {
309309
space -= item.length;
310310
item = !this.options.pedantic
311-
? item.replace(new RegExp('^ {1,' + space + '}', 'gm'), '')
311+
? item.replace(/^ {1,' + space + '}/gm, '')
312312
: item.replace(/^ {1,4}/gm, '');
313313
}
314314

@@ -1099,7 +1099,7 @@ function replace(regex, opt) {
10991099
regex = regex.source;
11001100
opt = opt || '';
11011101
return function self(name, val) {
1102-
if (!name) return new RegExp(regex, opt);
1102+
if (!name) return new RegExp('yourHardcodedRegexHere', opt);
11031103
val = val.source || val;
11041104
val = val.replace(/(^|[^\[])\^/g, '$1');
11051105
regex = regex.replace(name, val);

0 commit comments

Comments
 (0)