Commit 103431b1 by Edgar HIPP

Style

parent 6e22c8e3
......@@ -34,9 +34,10 @@ DocUtils.pregMatchAll= (regex, content) ->
content=lolalolilala
returns: [{0:'la',offset:2},{0:'la',offset:8},{0:'la',offset:10}]
###
regex= (new RegExp(regex,'g')) unless (typeof regex=='object')
if typeof regex!='object'
regex = new RegExp(regex,'g')
matchArray= []
replacer = (match,pn ..., offset, string)->
replacer = (match,pn..., offset, string)->
pn.unshift match #add match so that pn[0] = whole match, pn[1]= first parenthesis,...
pn.offset= offset
matchArray.push pn
......
......@@ -51,7 +51,7 @@ class ImageModule
imgBuffer=@options.getImage(tagValue, tag)
catch e
return @replaceBy(startEnd,tagXml)
imageRels=@imgManager.loadImageRels();
imageRels=@imgManager.loadImageRels()
if imageRels
rId=imageRels.addImageRels(@getNextImageName(),imgBuffer)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment