UNPKG

properties-file

Version:

.properties file parser, editor, formatter and Webpack loader.

1 lines 422 B
var PropertyLine=function(t,i){if(this.isContinuing=!1,this.isBlank=!1,this.isComment=!1,this.content=t.trimStart(),this.isMultiline=i,0===this.content.length)this.isBlank=!0;else if(this.isMultiline||(this.isComment=!!/^[!#]/.test(this.content)),!this.isComment){var n=this.content.match(/(\\+)$/);n&&(this.isContinuing=!!(n[1].length%2),this.isContinuing&&(this.content=this.content.slice(0,-1)))}};export{PropertyLine};