export class EdgeFormatter { newLine : string = "\n" ; indentPattern : string ; constructor ( options ? ) { options = options || { } ; options . tabSize = options . tabSize || 4 ; if ( typeof options . insertSpaces === "undefined" ) { options . insertSpaces = true ; } this . indentPattern = ( options . insertSpaces ) ? " " . repeat ( options . tabSize ) : "\t" ; } format ( inputText ) { let inComment = false ; let output = inputText ; output = output . replace ( /url\(\"(\s*)/g , "url\(\"" ) ; return output . trim ( ) ; } } export interface IEdgeFormatterOptions { insertSpaces ? : boolean ; tabSize ? : number ; }