Commit 103431b1 by Edgar HIPP

Style

parent 6e22c8e3
...@@ -34,9 +34,10 @@ DocUtils.pregMatchAll= (regex, content) -> ...@@ -34,9 +34,10 @@ DocUtils.pregMatchAll= (regex, content) ->
content=lolalolilala content=lolalolilala
returns: [{0:'la',offset:2},{0:'la',offset:8},{0:'la',offset:10}] 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= [] 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.unshift match #add match so that pn[0] = whole match, pn[1]= first parenthesis,...
pn.offset= offset pn.offset= offset
matchArray.push pn matchArray.push pn
......
...@@ -51,7 +51,7 @@ class ImageModule ...@@ -51,7 +51,7 @@ class ImageModule
imgBuffer=@options.getImage(tagValue, tag) imgBuffer=@options.getImage(tagValue, tag)
catch e catch e
return @replaceBy(startEnd,tagXml) return @replaceBy(startEnd,tagXml)
imageRels=@imgManager.loadImageRels(); imageRels=@imgManager.loadImageRels()
if imageRels if imageRels
rId=imageRels.addImageRels(@getNextImageName(),imgBuffer) 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